Skip to content

Commit

Permalink
Improve frontend dev setup
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Andrew Hinchey <[email protected]>
  • Loading branch information
ChrisHinchey committed Mar 2, 2023
1 parent 4a135e6 commit 132ccaa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .env-sample
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ 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: {},
cookieName: 'strapi_jwt'
},
runtimeConfig: {
public: {
GQL_HOST: 'https://saf-site-backend.herokuapp.com/graphql' // overwritten by process.env.GQL_HOST
GQL_HOST: process.env.GQL_HOST
}
}
})

0 comments on commit 132ccaa

Please sign in to comment.