Docs / Configuration
Configuration
hopak.config.ts — database, server, static, CORS, HTTPS.
hopak.config.ts is optional. Everything has sensible defaults.
import { defineConfig } from '@hopak/core';
export default defineConfig({
server: {
port: 3000,
host: '0.0.0.0',
},
database: {
dialect: 'sqlite',
file: '.hopak/data.db',
},
paths: {
models: 'app/models',
routes: 'app/routes',
public: 'public',
},
cors: {
origins: ['http://localhost:5173'],
},
});
All paths can be relative — they resolve from the project root.