Skip to content
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

Issue with the generated link #1

Open
nerko85 opened this issue Nov 7, 2022 · 2 comments
Open

Issue with the generated link #1

nerko85 opened this issue Nov 7, 2022 · 2 comments

Comments

@nerko85
Copy link

nerko85 commented Nov 7, 2022

When the link is generated in your bootstrap file it generates absolute path using configuration options ( host and port number). This works in development on localhost but when i push it to production it doesnt work. The link it generates and sends to the email is in the following form "http://0.0.0.0:1337/...."

@hoggworks
Copy link

I'm having the same issue. If I adjust my host variable to match the prod host (I've deployed to Heroku) the app crashes.

@prawee
Copy link

prawee commented May 28, 2023

i think you can fix via add url for server configure like this

config/server.js

module.exports = ({ env }) => ({
  host: ...,
  port: ...,
  url: env('BASE_URL'),
  app: ...
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants