Configuration
Each project typically uses environment variables and configuration files for setup.
Environment Variables
Create a .env.local file in the project root:
cp .env.example .env.localEdit the file with your specific values:
# API Keys
API_KEY=your_api_key_here
DATABASE_URL=your_database_url
# App Config
NEXT_PUBLIC_APP_URL=http://localhost:3000Never commit .env.local to version control. It’s already included in .gitignore by default.
Project Configuration
Most projects include a config file at the root:
// config.ts
export const config = {
siteName: 'My Project',
siteUrl: process.env.NEXT_PUBLIC_APP_URL,
// Add project-specific config here
}TypeScript
All projects use TypeScript with strict mode enabled. The tsconfig.json is pre-configured with sensible defaults.
Tailwind CSS
Tailwind is included in most frontend projects. Customize the theme in the CSS or config file as needed.
Last updated on