Akryum / meteor-vite

MIT License
33 stars 16 forks source link

chore: tested Vite and Galaxy #5

Closed Grubba27 closed 1 year ago

Grubba27 commented 1 year ago

I've tested standard deployment for meteor & Vite & Vue 3, and here are the results: Site link: https://vite-and-vue3.meteorapp.com/ Command that I've run:


meteor deploy vite-and-vue3.meteorapp.com --mongo --free

Have not tested SSR yet. Really cool having acess to Vite ecossytem! Thanks for this awesome work @Akryum

Akryum commented 1 year ago

Looks like some mime types are wrong. This example CSS file has text/html:

image

Akryum commented 1 year ago

Looks to be related to some preload directives

Grubba27 commented 1 year ago

I’ve deployed using the example in the repo. Perhaps there is a vite config that I was supposed to adjust ?

Akryum commented 1 year ago

Could you try putting build.polyfillModulePreload to false in the vite config and deploy again? 🙏

Grubba27 commented 1 year ago

Did it again. I think it is okay.

Links options Screen Shot 2022-09-15 at 00 05 01 Links composition Screen Shot 2022-09-15 at 00 06 02

Akryum commented 1 year ago

I still see the errors on the deployment you shared: image

Akryum commented 1 year ago

Hmm I've looked at polyfillModulePreload and that's not necessary to change it. Looks like Vite is appending preload tags to the head, but since they don't have ?meteor_js_resource=true in the URL Galaxy seems to respond with an incorrect mime type. Galaxy should use the correct mime type with the file extensions :(

Akryum commented 1 year ago

Could you re-deploy with the new version 0.1.8 I just published?

Grubba27 commented 1 year ago

I think it worked!! Screen Shot 2022-09-15 at 09 12 48

Akryum commented 1 year ago

I confirm, I no longer see errors :)