-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SESSION_SECRET error on fresh scaffold #1168
Comments
I tried creating a .env file with "SESSION_SECRET" but still getting the error |
Can you try writing |
Thanks @frandiox 👍 Do the docs mention these env variables that needed to be added? After adding SESSION_SECRET I'm now seeing this error:
thanks |
Check your What flow did you follow to create the project? Did you choose "mock.shop" or "link your store" option? Or you didn't see any option at all? |
Hey @frandiox, I added those environment variables. It works only for the demo store, but when I try to use the values for my store it just crashes with errors about server side keys:
|
Hmm... perhaps you're using the wrong tokens? |
It's work!thank you! |
I've hit this issue trying to link an existing (non-remix) hydrogen storefront. Pulling the env explicitly didn't work. |
The You can see where this error is thrown here in the template (your app code): https://github.com/Shopify/hydrogen/blob/main/templates/skeleton/server.ts#L33 -- Therefore, you can also pass the secret in any other way that your project supports. Let me know if that works 🤞 |
Closing for lack of feedback. Please re-open if still a problem. |
What is the location of your example repository?
No response
Which package or tool is having this issue?
Hydrogen
What version of that package or tool are you using?
"@shopify/cli-hydrogen": "^5.0.1",
What version of Remix are you using?
"@remix-run/react": "1.17.1",
Steps to Reproduce
npm run dev
Expected Behavior
should work when visiting localhost:3000
Actual Behavior
crashes with this error:
The text was updated successfully, but these errors were encountered: