mirror of
https://github.com/fergalmoran/onearmy-community-platform.git
synced 2025-12-25 02:58:21 +00:00
chore: code tidying
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user