renamed env variable
This commit is contained in:
@@ -3,7 +3,7 @@ import { Appwrite } from "appwrite";
|
||||
// SDK for client side (browser)
|
||||
const aw = new Appwrite();
|
||||
|
||||
aw.setEndpoint(process.env["APPWRITE_HOST"] as string)
|
||||
aw.setEndpoint(process.env["NEXT_PUBLIC_APPWRITE_HOST"] as string)
|
||||
.setProject("pingvin-share");
|
||||
|
||||
export default aw;
|
||||
|
||||
@@ -4,7 +4,7 @@ import sdk from "node-appwrite";
|
||||
const client = new sdk.Client();
|
||||
|
||||
client
|
||||
.setEndpoint(process.env["APPWRITE_HOST"] as string)
|
||||
.setEndpoint(process.env["NEXT_PUBLIC_APPWRITE_HOST"] as string)
|
||||
.setProject("pingvin-share")
|
||||
.setKey(process.env["APPWRITE_FUNCTION_API_KEY"] as string);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user