diff --git a/samples/browser/quickstart/.env.example b/samples/browser/quickstart/.env.example index 6a999c0..e38f402 100644 --- a/samples/browser/quickstart/.env.example +++ b/samples/browser/quickstart/.env.example @@ -1,4 +1,4 @@ -# Base URL of your ThunderID deployment (org tenant). +# Base URL of your ThunderID deployment. ex: https://localhost:8090 VITE_THUNDERID_BASE_URL=https://localhost:8090 # OAuth2 Client ID for this app. ThunderID Console -> your application -> Overview. diff --git a/samples/browser/quickstart/scripts/prepare-dev.cjs b/samples/browser/quickstart/scripts/prepare-dev.cjs index 6a08904..8e20fa4 100644 --- a/samples/browser/quickstart/scripts/prepare-dev.cjs +++ b/samples/browser/quickstart/scripts/prepare-dev.cjs @@ -9,11 +9,12 @@ const root = path.join(__dirname, '..'); const envExample = path.join(root, '.env.example'); const envTarget = path.join(root, '.env'); if (fs.existsSync(envExample) && !fs.existsSync(envTarget)) { - // Blank placeholder values (e.g. `your-client-id-here`) so the copied .env - // still trips the app's missing-env-var check until real values are filled in. + // Blank placeholder values (e.g. `your-client-id-here`, the sample base URL) + // so the copied .env still trips the app's missing-env-var check until real + // values are filled in. const envContent = fs .readFileSync(envExample, 'utf8') - .replace(/^([A-Z0-9_]+)=(your-\S*|generate-with-\S*)$/gm, '$1='); + .replace(/^([A-Z0-9_]+)=(your-\S*|generate-with-\S*|https:\/\/localhost:8090)$/gm, '$1='); fs.writeFileSync(envTarget, envContent); } diff --git a/samples/express/quickstart/.env.example b/samples/express/quickstart/.env.example index d874a50..968abea 100644 --- a/samples/express/quickstart/.env.example +++ b/samples/express/quickstart/.env.example @@ -1,4 +1,4 @@ -# Base URL of your ThunderID deployment (org tenant). +# Base URL of your ThunderID deployment. ex: https://localhost:8090 THUNDERID_BASE_URL=https://localhost:8090 # OAuth2 Client ID for this app. ThunderID Console -> your application -> Overview. diff --git a/samples/express/quickstart/scripts/prepare-dev.cjs b/samples/express/quickstart/scripts/prepare-dev.cjs index 6a08904..8e20fa4 100644 --- a/samples/express/quickstart/scripts/prepare-dev.cjs +++ b/samples/express/quickstart/scripts/prepare-dev.cjs @@ -9,11 +9,12 @@ const root = path.join(__dirname, '..'); const envExample = path.join(root, '.env.example'); const envTarget = path.join(root, '.env'); if (fs.existsSync(envExample) && !fs.existsSync(envTarget)) { - // Blank placeholder values (e.g. `your-client-id-here`) so the copied .env - // still trips the app's missing-env-var check until real values are filled in. + // Blank placeholder values (e.g. `your-client-id-here`, the sample base URL) + // so the copied .env still trips the app's missing-env-var check until real + // values are filled in. const envContent = fs .readFileSync(envExample, 'utf8') - .replace(/^([A-Z0-9_]+)=(your-\S*|generate-with-\S*)$/gm, '$1='); + .replace(/^([A-Z0-9_]+)=(your-\S*|generate-with-\S*|https:\/\/localhost:8090)$/gm, '$1='); fs.writeFileSync(envTarget, envContent); } diff --git a/samples/nextjs/quickstart/.env.example b/samples/nextjs/quickstart/.env.example index 43ae09b..80f281c 100644 --- a/samples/nextjs/quickstart/.env.example +++ b/samples/nextjs/quickstart/.env.example @@ -1,4 +1,4 @@ -# Base URL of your ThunderID deployment (org tenant). +# Base URL of your ThunderID deployment. ex: https://localhost:8090 NEXT_PUBLIC_THUNDERID_BASE_URL=https://localhost:8090 # OAuth2 Client Secret for this app. Shown once when the application is created; diff --git a/samples/nextjs/quickstart/scripts/prepare-dev.cjs b/samples/nextjs/quickstart/scripts/prepare-dev.cjs index c90ba9b..7d638c9 100644 --- a/samples/nextjs/quickstart/scripts/prepare-dev.cjs +++ b/samples/nextjs/quickstart/scripts/prepare-dev.cjs @@ -47,9 +47,10 @@ const envTarget = path.join(root, '.env'); if (fs.existsSync(envExample) && (flowExplicitlyRequested || !fs.existsSync(envTarget))) { const envSource = fs.existsSync(envTarget) ? envTarget : envExample; const envContent = applyFlow(fs.readFileSync(envSource, 'utf8'), flow) - // Blank placeholder values (e.g. `your-client-id-here`) so the copied .env - // still trips the app's missing-env-var check until real values are filled in. - .replace(/^([A-Z0-9_]+)=(your-\S*|generate-with-\S*)$/gm, '$1='); + // Blank placeholder values (e.g. `your-client-id-here`, the sample base URL) + // so the copied .env still trips the app's missing-env-var check until real + // values are filled in. + .replace(/^([A-Z0-9_]+)=(your-\S*|generate-with-\S*|https:\/\/localhost:8090)$/gm, '$1='); fs.writeFileSync(envTarget, envContent); } diff --git a/samples/node/quickstart/.env.example b/samples/node/quickstart/.env.example index b7fceca..ac2c714 100644 --- a/samples/node/quickstart/.env.example +++ b/samples/node/quickstart/.env.example @@ -1,4 +1,4 @@ -# Base URL of your ThunderID deployment (org tenant). +# Base URL of your ThunderID deployment. ex: https://localhost:8090 THUNDERID_BASE_URL=https://localhost:8090 # OAuth2 Client ID for this service. ThunderID Console -> your application -> Overview. diff --git a/samples/node/quickstart/scripts/prepare-dev.cjs b/samples/node/quickstart/scripts/prepare-dev.cjs index 6a08904..8e20fa4 100644 --- a/samples/node/quickstart/scripts/prepare-dev.cjs +++ b/samples/node/quickstart/scripts/prepare-dev.cjs @@ -9,11 +9,12 @@ const root = path.join(__dirname, '..'); const envExample = path.join(root, '.env.example'); const envTarget = path.join(root, '.env'); if (fs.existsSync(envExample) && !fs.existsSync(envTarget)) { - // Blank placeholder values (e.g. `your-client-id-here`) so the copied .env - // still trips the app's missing-env-var check until real values are filled in. + // Blank placeholder values (e.g. `your-client-id-here`, the sample base URL) + // so the copied .env still trips the app's missing-env-var check until real + // values are filled in. const envContent = fs .readFileSync(envExample, 'utf8') - .replace(/^([A-Z0-9_]+)=(your-\S*|generate-with-\S*)$/gm, '$1='); + .replace(/^([A-Z0-9_]+)=(your-\S*|generate-with-\S*|https:\/\/localhost:8090)$/gm, '$1='); fs.writeFileSync(envTarget, envContent); } diff --git a/samples/nuxt/quickstart/.env.example b/samples/nuxt/quickstart/.env.example index 011d93f..f38a92a 100644 --- a/samples/nuxt/quickstart/.env.example +++ b/samples/nuxt/quickstart/.env.example @@ -1,4 +1,4 @@ -# Base URL of your ThunderID deployment (org tenant). +# Base URL of your ThunderID deployment. ex: https://localhost:8090 NUXT_PUBLIC_THUNDERID_BASE_URL=https://localhost:8090 # OAuth2 Client Secret for this app. Shown once when the application is created; diff --git a/samples/nuxt/quickstart/scripts/prepare-dev.cjs b/samples/nuxt/quickstart/scripts/prepare-dev.cjs index bf80daf..99dad6a 100644 --- a/samples/nuxt/quickstart/scripts/prepare-dev.cjs +++ b/samples/nuxt/quickstart/scripts/prepare-dev.cjs @@ -47,9 +47,10 @@ const envTarget = path.join(root, '.env'); if (fs.existsSync(envExample) && (flowExplicitlyRequested || !fs.existsSync(envTarget))) { const envSource = fs.existsSync(envTarget) ? envTarget : envExample; const envContent = applyFlow(fs.readFileSync(envSource, 'utf8'), flow) - // Blank placeholder values (e.g. `your-client-id-here`) so the copied .env - // still trips the app's missing-env-var check until real values are filled in. - .replace(/^([A-Z0-9_]+)=(your-\S*|generate-with-\S*)$/gm, '$1='); + // Blank placeholder values (e.g. `your-client-id-here`, the sample base URL) + // so the copied .env still trips the app's missing-env-var check until real + // values are filled in. + .replace(/^([A-Z0-9_]+)=(your-\S*|generate-with-\S*|https:\/\/localhost:8090)$/gm, '$1='); fs.writeFileSync(envTarget, envContent); } diff --git a/samples/react/quickstart/.env.example b/samples/react/quickstart/.env.example index 6a999c0..e38f402 100644 --- a/samples/react/quickstart/.env.example +++ b/samples/react/quickstart/.env.example @@ -1,4 +1,4 @@ -# Base URL of your ThunderID deployment (org tenant). +# Base URL of your ThunderID deployment. ex: https://localhost:8090 VITE_THUNDERID_BASE_URL=https://localhost:8090 # OAuth2 Client ID for this app. ThunderID Console -> your application -> Overview. diff --git a/samples/react/quickstart/scripts/prepare-dev.cjs b/samples/react/quickstart/scripts/prepare-dev.cjs index 6a08904..8e20fa4 100644 --- a/samples/react/quickstart/scripts/prepare-dev.cjs +++ b/samples/react/quickstart/scripts/prepare-dev.cjs @@ -9,11 +9,12 @@ const root = path.join(__dirname, '..'); const envExample = path.join(root, '.env.example'); const envTarget = path.join(root, '.env'); if (fs.existsSync(envExample) && !fs.existsSync(envTarget)) { - // Blank placeholder values (e.g. `your-client-id-here`) so the copied .env - // still trips the app's missing-env-var check until real values are filled in. + // Blank placeholder values (e.g. `your-client-id-here`, the sample base URL) + // so the copied .env still trips the app's missing-env-var check until real + // values are filled in. const envContent = fs .readFileSync(envExample, 'utf8') - .replace(/^([A-Z0-9_]+)=(your-\S*|generate-with-\S*)$/gm, '$1='); + .replace(/^([A-Z0-9_]+)=(your-\S*|generate-with-\S*|https:\/\/localhost:8090)$/gm, '$1='); fs.writeFileSync(envTarget, envContent); } diff --git a/samples/vue/quickstart/.env.example b/samples/vue/quickstart/.env.example index 6a999c0..e38f402 100644 --- a/samples/vue/quickstart/.env.example +++ b/samples/vue/quickstart/.env.example @@ -1,4 +1,4 @@ -# Base URL of your ThunderID deployment (org tenant). +# Base URL of your ThunderID deployment. ex: https://localhost:8090 VITE_THUNDERID_BASE_URL=https://localhost:8090 # OAuth2 Client ID for this app. ThunderID Console -> your application -> Overview. diff --git a/samples/vue/quickstart/scripts/prepare-dev.cjs b/samples/vue/quickstart/scripts/prepare-dev.cjs index 6a08904..8e20fa4 100644 --- a/samples/vue/quickstart/scripts/prepare-dev.cjs +++ b/samples/vue/quickstart/scripts/prepare-dev.cjs @@ -9,11 +9,12 @@ const root = path.join(__dirname, '..'); const envExample = path.join(root, '.env.example'); const envTarget = path.join(root, '.env'); if (fs.existsSync(envExample) && !fs.existsSync(envTarget)) { - // Blank placeholder values (e.g. `your-client-id-here`) so the copied .env - // still trips the app's missing-env-var check until real values are filled in. + // Blank placeholder values (e.g. `your-client-id-here`, the sample base URL) + // so the copied .env still trips the app's missing-env-var check until real + // values are filled in. const envContent = fs .readFileSync(envExample, 'utf8') - .replace(/^([A-Z0-9_]+)=(your-\S*|generate-with-\S*)$/gm, '$1='); + .replace(/^([A-Z0-9_]+)=(your-\S*|generate-with-\S*|https:\/\/localhost:8090)$/gm, '$1='); fs.writeFileSync(envTarget, envContent); }