-
Notifications
You must be signed in to change notification settings - Fork 1.4k
chore: improve CSR starter 🍒 #8039
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: build/v2
Are you sure you want to change the base?
Conversation
|
commit: |
built with Refined Cloudflare Pages Action⚡ Cloudflare Pages Deployment
|
qwikVite({ csr: true }), | ||
tsconfigPaths({ root: "." }), | ||
config.mode === "development" && | ||
viteStaticCopy({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is needed to resolve
<script async type="module" src="@qwik.dev/core/qwikloader.js">
in dev mode.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is it needed in dev mode?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
without this fix, in dev mode, is not resolving and serving the file correctly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about using the qwikloader: "inline"
prop we just brought back in v1.17.0?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm that seems wrong, vite should be parsing the index.html and resolving the qwikloader.js into a module.
Isn't it working? I thought I tested it.
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Qwik browser-only starter</title> | ||
<title>Qwik SPA starter</title> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm - SPA implies multiple routes, no? Without qwik-router there's no routes...
Technically, it's the CSR starter.
qwikVite({ csr: true }), | ||
tsconfigPaths({ root: "." }), | ||
config.mode === "development" && | ||
viteStaticCopy({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm that seems wrong, vite should be parsing the index.html and resolving the qwikloader.js into a module.
Isn't it working? I thought I tested it.
CSR or SPA is more understandable then browser-only IMHO.