Add netlify toml
parent
1a8063f6fe
commit
5badfa804d
|
@ -0,0 +1,9 @@
|
|||
[build]
|
||||
publish = "__sapper__/export"
|
||||
command = "node scripts/createEnv.js && yarn export"
|
||||
|
||||
[[redirects]]
|
||||
from = "/*"
|
||||
to = "/index.html"
|
||||
status = 200
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
const fs = require('fs');
|
||||
|
||||
let envString = '';
|
||||
envString += `GOOGLE_DRIVE_CLIENT_ID=${process.env.GOOGLE_DRIVE_CLIENT_ID}\n`;
|
||||
envString += `GOOGLE_DRIVE_API_KEY=${process.env.GOOGLE_DRIVE_API_KEY}\n`;
|
||||
|
||||
fs.writeFileSync('.env', envString);
|
Loading…
Reference in New Issue