Skip to content

Commit 741854a

Browse files
authored
Merge pull request #8 from mhfaisalbd/main
Update configuration for production V01
2 parents de3b356 + 8356242 commit 741854a

3 files changed

Lines changed: 32 additions & 2 deletions

File tree

src/components/ui/dialog.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
3030
const DialogContent = React.forwardRef<
3131
React.ElementRef<typeof DialogPrimitive.Content>,
3232
React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>
33+
3334
>(({ className, children, "aria-describedby": ariaDescribedBy, ...props }, ref) => {
3435
// Provide a visually hidden fallback title if consumer forgets DialogTitle
3536
const [hasTitle, setHasTitle] = React.useState(false);

vite.config.ts

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,19 @@ export default defineConfig(({ mode }) => ({
99
port: 8080,
1010
},
1111
plugins: [react()],
12-
// Use Vite defaults for chunking to avoid potential execution order issues on some hosts
13-
build: {},
12+
13+
build: {
14+
rollupOptions: {
15+
output: {
16+
manualChunks(id) {
17+
if (id.includes('node_modules')) {
18+
return id.toString().split('node_modules/')[1].split('/')[0].toString();
19+
}
20+
}
21+
}
22+
}
23+
},
24+
1425
resolve: {
1526
alias: {
1627
"@": path.resolve(__dirname, "./src"),

web.config

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<configuration>
3+
<system.webServer>
4+
<rewrite>
5+
<rules>
6+
<rule name="React Routes" stopProcessing="true">
7+
<match url=".*" />
8+
<conditions logicalGrouping="MatchAll">
9+
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
10+
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
11+
<add input="{REQUEST_URI}" pattern="^/(api)" negate="true" />
12+
</conditions>
13+
<action type="Rewrite" url="/index.html" />
14+
</rule>
15+
</rules>
16+
</rewrite>
17+
</system.webServer>
18+
</configuration>

0 commit comments

Comments
 (0)