mirror of
https://github.com/LukeHagar/Sveltey.git
synced 2025-12-06 04:21:38 +00:00
feat: Initial SaaS template setup with SvelteKit, Supabase, and Skeleton
This commit establishes the foundational structure for a SaaS template. Key features implemented: - SvelteKit project initialized with TypeScript, ESLint, and Prettier. - Core dependencies installed: Supabase, Skeleton.dev, Tailwind CSS. - Skeleton.dev configured for theming and UI components. - Supabase client and environment variables configured. - Basic authentication flow (login, signup, logout) implemented using Supabase. - Marketing homepage, pricing page, and basic blog functionality (list and single post view) created. - Placeholder dashboard page for SaaS features. - Client-side session management and reactive UI updates based on auth state. The project now includes a responsive navigation bar, basic page structures, and demonstrates data fetching from Supabase (for the blog, assuming a 'posts' table). Styling is primarily handled by Skeleton.dev's default 'modern' theme in dark mode. Next steps would involve: - Creating the actual Supabase database schema. - Implementing more robust server-side route protection using SvelteKit hooks. - Adding specific SaaS features beyond placeholders. - Customizing styling and themes further. - Writing tests.
This commit is contained in:
13
my-saas-template/vite.config.ts
Normal file
13
my-saas-template/vite.config.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { sveltekit } from '@sveltejs/kit/vite';
|
||||
import { defineConfig } from 'vite';
|
||||
import { nodePolyfills } from 'vite-plugin-node-polyfills'; // Import the plugin
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
sveltekit(),
|
||||
nodePolyfills({
|
||||
// Options (if any) go here, e.g., to include specific polyfills
|
||||
protocolImports: true, // Recommended for Supabase
|
||||
})
|
||||
]
|
||||
});
|
||||
Reference in New Issue
Block a user