ishaan1013 / sandbox

A cloud-based code editing environment with an AI copilot and real-time collaboration
MIT License
1.25k stars 95 forks source link

Error while opening page http://localhost:3004/dashboard #27

Open laalamrajesh opened 1 month ago

laalamrajesh commented 1 month ago

After signup getting error env

NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/dashboard
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/dashboard

image

jontstaz commented 1 month ago

Same here. Ive deployed everything properly via wrangler, etc and all the .env are populated

Edit: ahhh I got it working. You need to run npm run generate in the backend/database and push the resulting sql file to the D1 DB first

laalamrajesh commented 1 month ago

Thanks @jontstaz that is the issue. From server side i am getting fetch is not defined error while running the server using command npm run dev. i am using node version 14.17. can you please help what node versions we need to use for each one in the project