Skip to content
This repository was archived by the owner on Mar 21, 2025. It is now read-only.

Updated Dependancies & Support for injecting Fauna secrect via .env file #37

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,7 @@ yarn-error.log*
*.sw?

# Local Netlify folder
.netlify
.netlify

# local env file
.env
6 changes: 3 additions & 3 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
[build]
command = "npm run build"
command = "sed -i s/FAUNADB_SERVER_SECRET/$FAUNADB_SERVER_SECRET/g netlify.toml && npm run build"
functions = "functions" # netlify dev uses this to know where to scaffold and serve your functions
publish = "dist"

[dev]
port = 3000 # Port that the dev server will be listening on
port = 3001 # Port that the dev server will be listening on
functionsPort = 34567 # port for functions server
targetPort = 3000 # Port of target app server
publish = "dist" # If you use a _redirect file, provide the path to your static content folder
jwtRolePath = "app_metadata.authorization.roles" # Object path we should look for role values for JWT based redirects
autoLaunch = true # a Boolean value that determines if Netlify Dev launches the local server address in your browser

[template.environment]
FAUNADB_SERVER_SECRET = "your FaunaDB server secret"
FAUNADB_SERVER_SECRET = ""
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simple-vue-netlify-auth",
"version": "0.1.0",
"version": "1.1.0",
"private": true,
"scripts": {
"bootstrap-db": "node ./scripts/bootstrap-db.js",
Expand Down