Skip to content

Commit 1226716

Browse files
committed
fix: Update R2 URL configuration in wrangler.toml for development environment
- Changed the `NEXT_PUBLIC_R2_URL` to a relative path for the development environment, ensuring consistency with the production configuration. - This update aims to streamline API access during local development and maintain uniformity across environments.
1 parent 2885147 commit 1226716

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wrangler.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ NODE_ENV = "production"
8888
LOG_LEVEL = "INFO"
8989
NEXTJS_ENV = "production"
9090
NEXT_PUBLIC_BASE_URL = "https://doomindex.fun"
91-
NEXT_PUBLIC_R2_URL = "https://doomindex.fun/api/r2"
91+
NEXT_PUBLIC_R2_URL = "/api/r2"
9292
IMAGE_MODEL = "runware:400@1"
9393
NEXT_PUBLIC_GENERATION_INTERVAL_MS = 600000 # 10 minutes
9494

@@ -157,6 +157,6 @@ NODE_ENV = "development"
157157
LOG_LEVEL = "DEBUG"
158158
NEXTJS_ENV = "development"
159159
NEXT_PUBLIC_BASE_URL = "http://localhost:8787"
160-
NEXT_PUBLIC_R2_URL = "http://localhost:8787/api/r2"
160+
NEXT_PUBLIC_R2_URL = "/api/r2"
161161
IMAGE_MODEL = "runware:400@1"
162162
NEXT_PUBLIC_GENERATION_INTERVAL_MS = 600000 # 10 minutes

0 commit comments

Comments
 (0)