Find the issue here: https://github.com/sveltejs/kit/issues/6914
main
branch you'll find an exemple of what is expected, using the export const router = false;
. reproducer
branch you'll find an example with upgraded version of sveltekit without export const router = false;
(replaced in this PR) and trying to use data-sveltekit-reload
as workaround.For convience, here is the comparaison between those two branches.
To run content renderer and all consumers please use following command:
docker-compose up
Run svelte-content-renderer
cd svelte-content-renderer
yarn install
yarn build
node ./server.js
Run next-js consumer
cd next-js-consumer
yarn install
yarn build
yarn start
Navigating to http://localhost:3001 you should arrive on the homepage of receiving site.
By clinking on Svelte integrated content
on the navbar you should get a page with the navbar and footer rendered by the host site and a content rendered by the svelte-content-renderer.
If you click to the Homepage link, the router of sveltekit should not interfer and you should see the host site homepage.
If you see the message "This page should not be displayed" is that the sveltekit router handle the link click.