Error in storefront not open
ionut98G opened this issue · comments
@ionut98G please provide more context to this so we can help. what have you run? your environment?
@ionut98G do you have a file named .env
at root?
No
That's Dockerfile. create a file named .env
and put content as this:
# common envs
NEXT_PUBLIC_API_URI=http://localhost:8000/graphql/ #your saleor api url
NEXT_PUBLIC_SALEOR_CHANNEL_SLUG=default-channel
NEXT_PUBLIC_DEMO_MODE=false
NEXT_PUBLIC_GTM_ID=
NEXT_PUBLIC_SENTRY_APM=0
NEXT_PUBLIC_SENTRY_DSN=
# ssr envs
INCREMENTAL_STATIC_REGENERATION_REVALIDATE=3600 # 1 hour
NEXT_PUBLIC_STATIC_PATHS_FALLBACK=blocking
In storefront folder?
yes
please update NEXT_PUBLIC_API_URI to your saleor api url
you need to run npm run build
before npm start
I don't know reason of this error sorry
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.