#GCP VM + Vercel Deployment

7 messages · Page 1 of 1 (latest)

white wraith
#

Im not sure but make sure your CORS are set up ok, there might be properties on GCP

nocturne turtle
#

For testing, Im trying server on GCP and storefront locally and have CORS and all setup. Basically its the exact same setup as my local dev testing except the backend url is changed in the storefront env

I get "ERR_TOO_MANY_REDIRECTS" when trying to access the storefront

And the server logs are just a bunch of these lines:
::ffff:75.157.124.5 - - [27/Sep/2024:14:36:29 +0000] "GET /store/regions HTTP/1.1" 200 47 "-" "Next.js Middleware"
::ffff:75.157.124.5 - - [27/Sep/2024:14:36:29 +0000] "GET /store/regions HTTP/1.1" 200 47 "-" "Next.js Middleware"
::ffff:75.157.124.5 - - [27/Sep/2024:14:36:29 +0000] "GET /store/regions HTTP/1.1" 200 47 "-" "Next.js Middleware"
::ffff:75.157.124.5 - - [27/Sep/2024:14:36:30 +0000] "GET /store/regions HTTP/1.1" 200 47 "-" "Next.js Middleware"
::ffff:75.157.124.5 - - [27/Sep/2024:14:36:30 +0000] "GET /store/regions HTTP/1.1" 200 47 "-" "Next.js Middlewar

modern ruin
#

did you set up your database?

nocturne turtle
#

Yup

#

I switched it to railway + Vercel

#

and railway works great

#

I can access backend url