Closed ZioPhil closed 4 months ago
The problem was that i was using the development version of the app on kubernetes. You must use the production version, that is generated with vite build
or npm run build
, if you have it configured in your package.json
Related plugins
[X] plugin-vue
[ ] plugin-vue-jsx
Describe the bug
I have a vue app that works without problems when executed in kubernetes on a single pod without replication. However, as soon as I try to replicate, it doesn't work anymore and it throws this kind of errors in the browser console when it tries to read content from node_modules/.vite (that I think is the vite cache):
Loading module from “https://srsproject.it/node_modules/.vite/deps/auth0.js?v=0a5335c3” was blocked because of a disallowed MIME type (“”).
Loading module from “https://srsproject.it/node_modules/.vite/deps/chunk-U6BEPC57.js?v=ddbe559a” was blocked because of a disallowed MIME type (“”).
Reproduction
https://github.com/ZioPhil/SrsProjectReproduction
Steps to reproduce
Install docker, kubectl and minikube Download all files in the repo and cd into the folder Run
minikube delete
Runminikube start
Runhelm install nginx-ingress ingress-nginx/ingress-nginx
In/etc/hosts
pair srsproject.it with the ip returned by the commandminikube ip
In another terminal, runminikube tunnel
Runkubectl apply -f .
Runkubectl delete ingress client-ingress
Runminikube dashboard
A dashboard window will open in your browser, go to "Deployments", open "client-deployment" On the top right press "Scale resource" and scale it to 2 Open a browser tab, pressCTRL+Shift +I
, opensrsproject.it
in that windowSystem Info
Used Package Manager
npm
Logs
No response
Validations