Configure server/tsconfig.json for enable export resolution used by postgraphile
"compilerOptions": {
"moduleResolution": "Bundler"
}
define DATABASE_URL
env...
Make sure to install the dependencies:
# npm
npm install
# pnpm
pnpm install
# yarn
yarn install
# npm
npm run export-schema
# pnpm
pnpm run export-schema
# yarn
yarn export-schema
Single h3 app (h3Standalone.ts
)
using the grafserv adaptor for h3
# npm
npm run h3
# pnpm
pnpm run h3
# yarn
yarn h3
Postgraphile integration is implemented in @/server/graphql/**
and @/server/api/graphql
.
ws are registering as explain by the nuxt team :
Start the development server on http://localhost:3000
:
# npm
npm run dev
# pnpm
pnpm run dev
# yarn
yarn dev
Build the application for production:
# npm
npm run build
# pnpm
pnpm run build
# yarn
yarn build
For Ruru working in prod, we must copy node_modules/ruru/bundle
to .output/server/node_modules/ruru/bundle
the script postbuild.mjs
do the job !
Locally preview production build:
# npm
npm run preview
# pnpm
pnpm run preview
# yarn
yarn preview