Open Atinux opened 2 months ago
NuxtHub API fetching to know a build is happening (replacing the modules:done and build:done hooks from the module for example).
modules:done
build:done
This will give the possibility to remove the need of having the @nuxthub/core module to deploy Nuxt projects without the need for storage.
@nuxthub/core
The nuxthub build command can detect the framework used and run the right build command.
nuxthub build
It can also be overwritten with:
npx nuxthub build -c "your build command"
The module will then read from the output directory (default to dist/) the hub.config.json file to know the primitives used to check if the build has to be cancelled (https://github.com/nuxt-hub/core/blob/823a6e8839efdb022ff43889c89ab128c833ea3f/src/utils/build.ts#L41-L51), this won't be necessary once we support wrangler.toml
dist/
hub.config.json
wrangler.toml
NuxtHub API fetching to know a build is happening (replacing the
modules:done
andbuild:done
hooks from the module for example).This will give the possibility to remove the need of having the
@nuxthub/core
module to deploy Nuxt projects without the need for storage.The
nuxthub build
command can detect the framework used and run the right build command.It can also be overwritten with:
The module will then read from the output directory (default to
dist/
) thehub.config.json
file to know the primitives used to check if the build has to be cancelled (https://github.com/nuxt-hub/core/blob/823a6e8839efdb022ff43889c89ab128c833ea3f/src/utils/build.ts#L41-L51), this won't be necessary once we supportwrangler.toml