Shipping 0kb js to client
Answered
American Crow posted this in #help-forum
American CrowOP
Hey! Is there a way to disable client side javascript? I have a project that generates non interactible web pages, and I would like it if the client did not try to hydrate or rerender anything.
Answered by American Crow
export const config: PageConfig = {
unstable_runtimeJS: false,
}; Yeah this was it
unstable_runtimeJS: false,
}; Yeah this was it
10 Replies
no, not possible. you need to use a different framework.
American Chinchilla
Something like Astro framework
@joulev no, not possible. you need to use a different framework.
American CrowOP
I believe there was an option under the pages router no?
@American Crow I believe there was an option under the pages router no?
I don't think so, pages router wasn't even complete server-side rendering... App router is your best option, if that didn't support it, I don't think pages router will
@averydelusionalperson I don't think so, pages router wasn't even complete server-side rendering... App router is your best option, if that didn't support it, I don't think pages router will
American CrowOP
export const config: PageConfig = {
unstable_runtimeJS: false,
}; Yeah this was it
unstable_runtimeJS: false,
}; Yeah this was it
Answer
American CrowOP
Either way, thank you to all
