⚠️ Beta Stage: Photon is currently in beta. APIs may change before stable release.
Configuration
Vite Configuration
Ensure that your Vite config includes the Photon Vite plugin:
// vite.config.ts
import { photon } from '@photonjs/runtime/vite'
export default {
plugins: [
photon(),
]
}
Deployment
Preview
Test build output locally with Node:
vite build
vite preview
Production
Run build output directly:
vite build
bun --bun dist/server/index.mjs