Skip to content

Commit

Permalink
fix(host): build folder location
Browse files Browse the repository at this point in the history
  • Loading branch information
hlolli committed Dec 10, 2024
1 parent 4c33f04 commit f012f38
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config/paths.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const resolveModule = (resolveFn, filePath) => {
module.exports = {
dotenv: resolveApp('.env'),
appPath: resolveApp('.'),
appBuild: resolveApp('build'),
appBuild: resolveApp('dist'),
appPublic: resolveApp('public'),
appHtml: resolveApp('public/index.html'),
appIndexJs: resolveModule(resolveApp, 'src/index'),
Expand Down
2 changes: 1 addition & 1 deletion firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"source": "./functions"
},
"hosting": {
"public": "build",
"public": "dist",
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
"rewrites": [
{
Expand Down
4 changes: 2 additions & 2 deletions scripts/uploadSourcemaps.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ upload({
.then(data => console.log("----- SUCCESS ----\n", data))
.catch(error => console.log("---- ERROR ----\n", error));
function getFiles() {
const BUILD_DIR = "build";
const BUILD_DIR = "dist";
const assetsFile = path.resolve(BUILD_DIR, "asset-manifest.json");
const filePaths = require(assetsFile);
const jsFilesRegex = /(\.js(.map)?)$/;
Expand All @@ -25,4 +25,4 @@ function getFiles() {
}));

return files;
}
}

0 comments on commit f012f38

Please sign in to comment.