swyx's preferred starter for Svelte projects:
/myblog
instead of /blog/myblog
)/content
folder instead of in /src/routes
/api/rss.xml
) with cachinghydrate
on about and blog pagesmaxage
to 1 minute to cache (consider making it 1-7 days on older posts)See https://swyxkit.netlify.app/
npm install
npm run start
You should be able to deploy this project straight to Netlify as is, just like this project is.
Before deploying, remember to configure /lib/siteConfig.js
- just some hardcoded vars i want you to remember to configure.
You can read:
[slug].svelte
has precedence over rss.xml.js
)import.meta.globEager
feature and that makes it static for the RSS...