Hi,
I have a a quite strange usecase I think and I fail to make this work so I bet some of you guys know what I should do. I have a NextJS project which is my playground/portfolio site at https://remcostoeten.com. Now I want to dive into Svelte and/or Vue but starting off with Svelte and I’d like to implement a anchor tag in my header which says Svelte that navigates to https://remcostoeten.com/svelte (that is then a Svelte app, ant not NextJS).
I have a NextJS app and inside there I have created a new Svelte app.I run the following locally;
/root
npm run dev; cd svelte;npm run dev.
Which spins up a localhost:3000 and localhost:5757. Works perfectlly and my Header I got configured like this:
{
label: 'SvelteKit',
href: process.env.SVELTE_APP_URL,
pills: (
<>
<Pills variant='showcase' text='Showcase' />
</>
),
},
];
With my .env.local containing localhost:5777 and my .env.prod containing https://remcostoeten.com/svelte.
Now so far so good, but wanting to deploy is where I get stuck. I have no clue how to configure my TOML or Netlify backend in such an way that it builds nextjs and svelte inside the same repo and than allows to link remcostoeten.com/svelte to the /svelte app directory inside the project. If that makes sense…
This is my repo feature branch where the Svelte app + nextjs sit. GitHub - remcostoeten/remcostoeten.com at feature/sveltekit
I hope somebody can help me out , much appreciated. And keep in mind and sorry for my devops knowledge, even TOML files and such are completely new for me.
Edit: What even would be better to have https://remcostoeten.com be my nextJS app. And then have https://svelte.remcostoeten.com which has the Svelte app. I do have my domain bought through netlify also, for whatever that’s worth.