Tristramg / velos-paris

Synthèse des compteurs de vélos à Paris
https://compteurs.parisenselle.fr/
MIT License
20 stars 8 forks source link

Support url with subfolder #15

Closed trouyer closed 3 years ago

trouyer commented 3 years ago

Hi,

If app is deployed in subfolder of domain name (i.e. http://example.com/velos-paris), index cannot load asset (index look at http://example.com/_next ...).

When adding config with basePath, build automatically add prefix to links (https://nextjs.org/docs/api-reference/next.config.js/basepath).

Thomas

m4nu56 commented 3 years ago

Better to have @Tristramg to verify that he can still deploy in production with this fix before merging that

Tristramg commented 3 years ago

Sorry for taking so long before replying…

It seems to work and breaking nothing if the variable is not set :+1: