This is a list of steps to get a new SvelteKit project up and running using my normal flow
- Swap out
"@sveltejs/adapter-auto"
for"@sveltejs/adapter-netlify": "next",
- Add in new Script for
npm start
- Optional: Expose the Vite server on the network by adding
--host
to the scripts
- Update the import to
import adapter from '@sveltejs/adapter-netlify';
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org
root = true
[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 2
[build]
command = "npm run build"
publish = "build"
-
.idea
-
.netlify
- Mark the
static
folder as the Resource Root - Run the dev and build commands then mark the output folders as Excluded Resources
- Optional: Add in Pocketbase
- Optional: Add in Slugify
- Optional: Add in DayJS