Skip to content

Commit

Permalink
Dont hardcod browser bundle path
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesdaniels committed May 9, 2023
1 parent 4c9f6ac commit b1709ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "firebase-frameworks",
"version": "0.10.0",
"version": "0.10.1",
"description": "Experimental addon to the Firebase CLI to add web framework support",
"main": "dist/index.js",
"repository": "FirebaseExtended/firebase-framework-tools",
Expand Down
2 changes: 1 addition & 1 deletion src/angular/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const handle = async (req: Request, res: Response) => {
const locale = req.query.locale || "";
if (typeof locale !== "string") return res.sendStatus(404);
if (!LOCALE_FORMATS.some(it => locale.match(it))) return res.sendStatus(404);
const serveFrom = "./dist/hosting/browser";
const serveFrom = `./${process.env.__NG_BROWSER_OUTPUT_PATH__}`;
const normalizedPath = normalize(join(serveFrom, locale, src));
if (relative(serveFrom, normalizedPath).startsWith("..")) return res.sendStatus(404);
const { default: sharp} = await import("sharp");
Expand Down

0 comments on commit b1709ad

Please sign in to comment.