Skip to content

Commit

Permalink
feat: devServer on localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
magicsk committed Nov 14, 2022
1 parent 0cb50ac commit 4c1f7ea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env.development
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
VITE_HASURA_GRAPHQL_ENDPOINT = "https://test.hasura.magicsk.eu/v1/graphql"
VITE_HASURA_GRAPHQL_SECRET = "c2akHldMLELW7z5RFUMu8AnUxyHAXAThFzW5JZK7HejgMjG5cn7kr1m0C0Vefdbc"
VITE_INJECT_MODE = "jamstack"
VITE_INJECT_MODE = "devServer"
2 changes: 1 addition & 1 deletion codegen.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
overwrite: true
schema: ${VITE_HASURA_GRAPHQL_ENDPOINT}
documents: './src/pages/**/*.graphql'
documents: './src/**/*.graphql'
generates:
src/generated/graphql.ts:
plugins:
Expand Down
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export default ({ command, mode }) => {
graphQLSecret: env.VITE_HASURA_GRAPHQL_SECRET,
cwd: process.cwd(),
injectLowcode: true,
injectMode: env.VITE_NETLIFY ? "jamstack" : env.VITE_INJECT_MODE,
features: {
tippy: true,
generator: true,
Expand Down

0 comments on commit 4c1f7ea

Please sign in to comment.