We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Qwik City (routing)
Usually, We will set the q:base attribute to add the domain name of the cdn to the static resource.
However, this q:base property fails when the application preloads some components. This results in a 404 for some static resources.
https://codesandbox.io/p/sandbox/dreamy-swirles-tn392g?file=%2Fsrc%2Fentry.ssr.tsx%3A30%2C6
node v16.14.0 npm v8.3.1 "@builder.io/qwik": "^1.2.6", "@builder.io/qwik-city": "^1.2.6", "vite": "4.4.0",
No response
The text was updated successfully, but these errors were encountered:
base is a property above
export default function (opts: RenderToStreamOptions) f return renderToStream (<Root />, { manifest, ...opts, base: "https://cdn.com/build", <--- base should be here containerAttributes: { lang: "en-us" ...opts.containerAttributes,
Sorry, something went wrong.
No branches or pull requests
Which component is affected?
Qwik City (routing)
Describe the bug
Usually, We will set the q:base attribute to add the domain name of the cdn to the static resource.
![image](https://private-user-images.githubusercontent.com/48158124/254807117-775af586-5c82-40cd-87b2-a62e9574d51a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIwMzIyMzYsIm5iZiI6MTcyMjAzMTkzNiwicGF0aCI6Ii80ODE1ODEyNC8yNTQ4MDcxMTctNzc1YWY1ODYtNWM4Mi00MGNkLTg3YjItYTYyZTk1NzRkNTFhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI2VDIyMTIxNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA0ZWMyNjk0YzdjYmYwZDcyYjQ5NWQ1NDhlNzVmZDY1NjE1ZjhiOTUzM2JlMzc5ZjdiYmU5OWI1MDA0MzI4NzAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.fM2VL6aBmxJbO4AHjl0kQKabygutDBdSd32UBeoyLss)
However, this q:base property fails when the application preloads some components.
This results in a 404 for some static resources.
Reproduction
https://codesandbox.io/p/sandbox/dreamy-swirles-tn392g?file=%2Fsrc%2Fentry.ssr.tsx%3A30%2C6
Steps to reproduce
System Info
Additional Information
No response
The text was updated successfully, but these errors were encountered: