If creating a new app, try to update this repo first and verify things are working. This avoids the need to figure out what to delete and keep when copying an existing project.
.env.local
Update this with the new app name
Simple cookie-based auth with no password protection. Just hit /sign-in/<username>
and you'll be logged in
Server endpoints will check for that cookie to get the username, such as:
const username = cookies.get('username')
if (!username) {
return {
error: 'You need to hit /sign-in/<username> first to set your username',
}
}
In these two files:
node_modules/.pnpm/[email protected]/node_modules/svelte/types/index.d.ts
node_modules/.pnpm/[email protected]/node_modules/svelte/src/ambient.d.ts
Comment out this module declaration:
declare module '*.svelte' {
export { SvelteComponent as default } from 'svelte'
}
I'm not sure what the right solution or cause of this issue is, but that works for my purposes right now.
Check Obsidian note Svelte.md
for ignore comments