Skip to content

Commit b1709ad

Browse files
committed
Dont hardcod browser bundle path
1 parent 4c9f6ac commit b1709ad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "firebase-frameworks",
3-
"version": "0.10.0",
3+
"version": "0.10.1",
44
"description": "Experimental addon to the Firebase CLI to add web framework support",
55
"main": "dist/index.js",
66
"repository": "FirebaseExtended/firebase-framework-tools",

src/angular/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const handle = async (req: Request, res: Response) => {
1515
const locale = req.query.locale || "";
1616
if (typeof locale !== "string") return res.sendStatus(404);
1717
if (!LOCALE_FORMATS.some(it => locale.match(it))) return res.sendStatus(404);
18-
const serveFrom = "./dist/hosting/browser";
18+
const serveFrom = `./${process.env.__NG_BROWSER_OUTPUT_PATH__}`;
1919
const normalizedPath = normalize(join(serveFrom, locale, src));
2020
if (relative(serveFrom, normalizedPath).startsWith("..")) return res.sendStatus(404);
2121
const { default: sharp} = await import("sharp");

0 commit comments

Comments
 (0)