Created
October 17, 2021 16:55
-
-
Save jasonruesch/a3b00ff39d8d520b169562e7450db4a0 to your computer and use it in GitHub Desktop.
Update functions and hosting rewrites
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"functions": { | |
"runtime": "nodejs14", | |
"source": "dist/apps/api", | |
"ignore": [ | |
"firebase.json", | |
"**/.*", | |
"**/node_modules/**" | |
] | |
}, | |
"hosting": { | |
"public": "dist/apps/web", | |
"ignore": [ | |
"firebase.json", | |
"**/.*", | |
"**/node_modules/**" | |
], | |
"rewrites": [ | |
{ | |
"source": "/api", | |
"function": "api" | |
}, | |
{ | |
"source": "/api/**", | |
"function": "api" | |
}, | |
{ | |
"source": "**", | |
"destination": "/index.html" | |
} | |
] | |
}, | |
"emulators": { | |
"functions": { | |
"port": 5001 | |
}, | |
"ui": { | |
"enabled": true | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment