Skip to content

Commit 67051c7

Browse files
committed
chore(functions): remove static files to publish with firebase hosting
1 parent 3357606 commit 67051c7

4 files changed

Lines changed: 3 additions & 5 deletions

File tree

functions/__env.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
// setup server and app options from Functions config (and mocks)
2+
const { GCLOUD_PROJECT } = process.env
23
const { pkg, server } = require('firebase-functions').config()
34
const functionName = server.functionName || 'app'
45

56
module.exports = {
67
functionName,
78
operatorToken: server && server.operator_token,
89
baseUri: (server && server.base_uri) ||
9-
`https://us-central1-${process.env.GCLOUD_PROJECT}.cloudfunctions.net/${functionName}`,
10+
`https://us-central1-${GCLOUD_PROJECT}.cloudfunctions.net/${functionName}`,
11+
hostingUri: `https://${GCLOUD_PROJECT}.web.app`,
1012
pkg: {
1113
...pkg
1214
}

functions/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ recursiveReadDir(routesDir).filter(filepath => filepath.endsWith('.js')).forEach
131131
})
132132

133133
server.use(router)
134-
server.use(express.static('public'))
135134

136135
exports[functionName] = functions.https.onRequest(server)
137136
console.log(`-- Starting '${app.title}' E-Com Plus app with Function '${functionName}'`)

functions/public/description.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

functions/public/icon.png

-15.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)