chore: code tidying

This commit is contained in:
chrismclarke
2022-06-27 23:10:06 -07:00
parent 81fd577314
commit 8ad7dc951e
2 changed files with 2 additions and 31 deletions

View File

@@ -1,29 +1,4 @@
import { writeFileSync } from 'fs'
import { resolve } from 'path'
import type { configVars } from '../src/config/config'
process.env.FUNCTIONS_EMULATOR = 'true'
process.env.FIREBASE_AUTH_EMULATOR_HOST = 'localhost:4005'
process.env.FIREBASE_DATABASE_EMULATOR_HOST = 'localhost:4006'
process.env.FIRESTORE_EMULATOR_HOST = 'localhost:4003'
/** Variables populates in the same way firebase functions:config:set does */
const runtimeConfig: configVars = {
analytics: {
tracking_code: 'fake_tracking_code',
view_id: 'fake_view_id',
},
integrations: {
discord_webhook: 'fake_discord_webhook',
slack_webhook: 'fake_slack_webhook',
},
service: null as any,
deployment: {
site_url: 'https://functions.test',
},
prerender: {
api_key: 'fake_prerender_key',
},
}
const runtimeConfigPath = resolve(__dirname, '../.runtimeconfig.json')
writeFileSync(runtimeConfigPath, JSON.stringify(runtimeConfig))