mirror of
https://github.com/swissmakers/swiss-datashare.git
synced 2026-04-17 12:43:13 +02:00
renamed env variable
This commit is contained in:
@@ -2,7 +2,7 @@ import axios from "axios";
|
||||
|
||||
const api = () =>
|
||||
axios.create({
|
||||
baseURL: process.env["APPWRITE_HOST"],
|
||||
baseURL: process.env["NEXT_PUBLIC_APPWRITE_HOST"],
|
||||
headers: {
|
||||
cookie: `a_session_console=${process.env["APPWRITE_USER_TOKEN"]}`,
|
||||
},
|
||||
|
||||
@@ -3,7 +3,7 @@ const aw = () => {
|
||||
let client = new sdk.Client();
|
||||
|
||||
client
|
||||
.setEndpoint(process.env["APPWRITE_HOST"])
|
||||
.setEndpoint(process.env["NEXT_PUBLIC_APPWRITE_HOST"])
|
||||
.setProject("pingvin-share")
|
||||
.setKey(process.env["APPWRITE_API_KEY"])
|
||||
.setSelfSigned();
|
||||
|
||||
Reference in New Issue
Block a user