diff --git a/README.md b/README.md index dc31ae538..a58cd68e7 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,8 @@ yarn dev:ssl # If you are working with the login process > experience an SSL error when the authentication provider redirects you back to > the app after login. You can either remove the trailing s in the URL after the > redirection, or use the `yarn dev:ssl` command to use HTTPs for the -> development server. +> development server. Also, make sure to set the `NEXTAUTH_URL` environment +> variable to `https://localhost:3000` in your `.env.local` file. > 👉 In [Visual Studio Code](https://code.visualstudio.com/), you also can run > the **default build task** (CMD-SHIFT-B) to start the dev server, database @@ -351,6 +352,9 @@ You can use the ref eIAM. ADFS environment variables should be configured in your `.env.local` file. You'll find those secret variables in our shared 1Password in the "Visualize.admin .env.local" entry. +Make sure to set the `NEXTAUTH_URL` environment variable to +`http://localhost:3000` and run the dev server with `yarn dev:ssl`. + ## 10. Translations Translations are managed via [Accent](https://accent.interactivethings.io). diff --git a/app/.env.development b/app/.env.development index e5a6f2a88..8b27fc667 100644 --- a/app/.env.development +++ b/app/.env.development @@ -6,4 +6,5 @@ WHITELISTED_DATA_SOURCES=["Prod", "Prod-uncached", "Int", "Int-uncached", "Test" SENTRY_IGNORE_API_RESOLUTION_ERROR=1 NEXT_PUBLIC_VECTOR_TILE_URL=https://world.vectortiles.geo.admin.ch NEXT_PUBLIC_MAPTILER_STYLE_KEY=123 -ADFS_PROFILE_URL=https://www.myaccount-r.eiam.admin.ch/ \ No newline at end of file +ADFS_PROFILE_URL=https://www.myaccount-r.eiam.admin.ch/ +NEXTAUTH_URL=https://localhost:3000 \ No newline at end of file