Skip to content

Commit

Permalink
MIME type issue
Browse files Browse the repository at this point in the history
  • Loading branch information
palldas committed Jun 2, 2024
1 parent a5b0845 commit d6055f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
6 changes: 5 additions & 1 deletion frontend/staticwebapp.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,9 @@
"route": "/*",
"rewrite": "/index.html"
}
]
],
"mimeTypes": {
".js": "text/javascript",
".css": "text/css"
}
}
11 changes: 1 addition & 10 deletions frontend/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
// import { defineConfig } from "vite";
// import react from "@vitejs/plugin-react";

// // https://vitejs.dev/config/
// export default defineConfig({
// plugins: [react()],
// });

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import { resolve } from "path";
Expand All @@ -20,6 +12,5 @@ export default defineConfig({
},
},
},
// Ensure the public directory is included in the build
publicDir: "public",
publicDir: "public", // Ensure the public directory is included in the build
});

0 comments on commit d6055f9

Please sign in to comment.