Spaces:
Runtime error
Runtime error
Commit
·
978b4d9
1
Parent(s):
793c1b3
going to add a secret token
Browse files- .env +2 -1
- src/app/engine/render.ts +1 -1
.env
CHANGED
@@ -1,3 +1,4 @@
|
|
1 |
NEXT_PUBLIC_BASE_URL=https://jbilcke-hf-fishtank.hf.space
|
2 |
# NEXT_PUBLIC_RENDERING_ENGINE_API=https://hysts-zeroscope-v2.hf.space
|
3 |
-
RENDERING_ENGINE_API=https://jbilcke-hf-videochain-api.hf.space
|
|
|
|
1 |
NEXT_PUBLIC_BASE_URL=https://jbilcke-hf-fishtank.hf.space
|
2 |
# NEXT_PUBLIC_RENDERING_ENGINE_API=https://hysts-zeroscope-v2.hf.space
|
3 |
+
RENDERING_ENGINE_API=https://jbilcke-hf-videochain-api.hf.space
|
4 |
+
#VC_SECRET_ACCESS_TOKEN=<SECRET>
|
src/app/engine/render.ts
CHANGED
@@ -131,7 +131,7 @@ export async function getRender(renderId: string) {
|
|
131 |
headers: {
|
132 |
Accept: "application/json",
|
133 |
"Content-Type": "application/json",
|
134 |
-
|
135 |
},
|
136 |
cache: 'no-store',
|
137 |
// we can also use this (see https://vercel.com/blog/vercel-cache-api-nextjs-cache)
|
|
|
131 |
headers: {
|
132 |
Accept: "application/json",
|
133 |
"Content-Type": "application/json",
|
134 |
+
Authorization: `Bearer ${process.env.VC_SECRET_ACCESS_TOKEN}`,
|
135 |
},
|
136 |
cache: 'no-store',
|
137 |
// we can also use this (see https://vercel.com/blog/vercel-cache-api-nextjs-cache)
|