Skip to content

Commit 4377a8a

Browse files
authored
build: configure asset dir to static to match prior behavior (#3118)
## Description Found in bug bash, there were strange mime type errors, but at least some of these seem to stem from things trying to authenticate when they did not need it. `vite` has a different default asset directory than `CRA`. This PR changes the default to instead use `static` as CRA did
1 parent 0950155 commit 4377a8a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/modernization-ui/vite.config.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ export default defineConfig(({ mode }) => {
3434
'/login': { target: `http://localhost:${NBS_API_PORT}`, changeOrigin: true },
3535
},
3636
},
37-
build: { outDir: 'build' },
37+
build: { outDir: 'build', assetsDir: 'static' },
3838
};
3939
});

0 commit comments

Comments
 (0)