@ruvyxa/adapter-static
v1.1.5
Published
Prepare Ruvyxa routes and assets for static output targets through the first-party adapter contract.
Downloads
1,752
Maintainers
Readme
Install
npm install @ruvyxa/adapter-staticUsage
import { config } from 'ruvyxa/config'
import { static as staticOutput } from '@ruvyxa/adapter-static'
export default config({
adapter: staticOutput(),
})Deployment Artifact
{
"name": "static",
"target": "static",
"platform": "static",
"entry": ".ruvyxa/static",
"assetsDir": ".ruvyxa/assets",
"clientDir": ".ruvyxa/client",
"chunkManifest": ".ruvyxa/client/chunk-manifest.json"
}ruvyxa build copies publishable files to .ruvyxa/static/. Configure outputDir to choose a
different directory inside .ruvyxa, for example staticOutput({ outputDir: 'public' }).
Only SSG and CSR page routes are supported. API routes and server-rendered, ISR, or PPR routes fail
the build with RUV2202, rather than producing an incomplete deployment.
