- Create Container Worker entry point with load balancing (20 instances) - Add wrangler-container.toml configuration with KV binding for environment variables - Configure container to use standard-1 instance type with Chromium support - Implement dynamic environment variable loading from Cloudflare KV Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>
17 lines
383 B
TypeScript
17 lines
383 B
TypeScript
import { defineConfig } from 'tsdown';
|
|
|
|
export default defineConfig({
|
|
entry: ['./lib/container.ts'],
|
|
outDir: 'dist-container',
|
|
format: 'esm',
|
|
minify: true,
|
|
clean: true,
|
|
platform: 'node',
|
|
target: 'esnext',
|
|
treeshake: true,
|
|
define: {
|
|
'process.env.NODE_ENV': JSON.stringify('production'),
|
|
},
|
|
external: ['@cloudflare/containers'],
|
|
});
|