diff --git a/.gitignore b/.gitignore index 131fa33..940df60 100644 --- a/.gitignore +++ b/.gitignore @@ -21,4 +21,7 @@ yarn-error.log* *.sw? # Local Netlify folder -.netlify \ No newline at end of file +.netlify + +# local env file +.env diff --git a/netlify.toml b/netlify.toml index b35b60e..6e1090c 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,10 +1,10 @@ [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 @@ -12,4 +12,4 @@ 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" \ No newline at end of file + FAUNADB_SERVER_SECRET = "" \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index c62981f..ebb841d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10126,9 +10126,9 @@ } }, "lodash": { - "version": "4.17.15", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", - "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", + "version": "4.17.19", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.19.tgz", + "integrity": "sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ==", "dev": true }, "lodash.defaultsdeep": { @@ -15755,9 +15755,9 @@ } }, "websocket-extensions": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.3.tgz", - "integrity": "sha512-nqHUnMXmBzT0w570r2JpJxfiSD1IzoI+HGVdd3aZ0yNi3ngvQ4jv1dtHt5VGxfI2yj5yqImPhOK4vmIh2xMbGg==", + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.4.tgz", + "integrity": "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==", "dev": true }, "whatwg-encoding": { diff --git a/package.json b/package.json index 029ebd6..7118e99 100644 --- a/package.json +++ b/package.json @@ -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",