Configuration¶
Configure NextPresser to connect with your WordPress backend and customize settings.
Environment Variables¶
Create a .env.local file in your project root:
# WordPress GraphQL Endpoint
NEXT_PUBLIC_WORDPRESS_URL=https://your-wordpress-site.com
NEXT_PUBLIC_GRAPHQL_ENDPOINT=/graphql
# Authentication (if using)
WORDPRESS_AUTH_KEY=your_auth_key
WORDPRESS_AUTH_SECRET=your_auth_secret
# Site Configuration
NEXT_PUBLIC_SITE_NAME=NextPresser
NEXT_PUBLIC_SITE_URL=http://localhost:3000
Configuration File¶
Main configuration is located in src/config/app.ts:
export const AppConfig = {
wordpressUrl: process.env.NEXT_PUBLIC_WORDPRESS_URL,
graphqlEndpoint: process.env.NEXT_PUBLIC_GRAPHQL_ENDPOINT,
// ... other settings
};
Customization¶
Theme Configuration¶
Customize colors, fonts, and styling in tailwind.config.ts.
API Settings¶
Adjust API timeout, retry logic, and caching in the API configuration.