Symptoms:
Cannot find module '@/app/generated/register.*'
Fix:
npx smoz register
Tip: Commit the generated register.*.ts
to keep typecheck stable. The Serverless plugin (exported as @karmaniverous/smoz/serverless-plugin
) runs smoz register
before package/deploy.
import { fileURLToPath } from 'node:url';
import { toPosixPath } from '@karmaniverous/smoz';
export const APP_ROOT_ABS = toPosixPath(
fileURLToPath(new URL('..', import.meta.url)),
);
npx smoz register
).rimraf .tsbuild .rollup.cache dist
eventSchema
and responseSchema
.200 {}
and sets the configured content type.