diff --git a/.env-sample b/.env-sample new file mode 100644 index 00000000..b8ef102c --- /dev/null +++ b/.env-sample @@ -0,0 +1,8 @@ +# ------------ Strapi ------------ # +STRAPI_URL=CHANGEME +GQL_HOST=CHANGEME + +# ------------ Playwright ------------ # +# Uncomment variables you want to use for the playwright config +# PLAYWRIGHT_TEST_BASE_URL=CHANGEME +# CI=CHANGEME \ No newline at end of file diff --git a/nuxt.config.ts b/nuxt.config.ts index 769844d9..17732f1b 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -7,7 +7,7 @@ export default defineNuxtConfig({ modules: ['@nuxtjs/strapi', 'nuxt-graphql-client', '@nuxtjs/tailwindcss'], strapi: { // Options for strapi - url: process.env.STRAPI_URL || 'https://saf-site-backend.herokuapp.com', + url: process.env.STRAPI_URL, prefix: '/api', version: 'v4', cookie: {}, @@ -15,7 +15,7 @@ export default defineNuxtConfig({ }, runtimeConfig: { public: { - GQL_HOST: 'https://saf-site-backend.herokuapp.com/graphql' // overwritten by process.env.GQL_HOST + GQL_HOST: process.env.GQL_HOST } } })