Preview and deploy @marko/run apps as static files
npm install @marko/run-adapter-static
In your application's Vite config file (eg. vite.config.js
), import and register this adapter with the @marko/run
Vite plugin:
import { defineConfig } from "vite";
import marko from "@marko/run/vite";
import staticAdapter from "@marko/run-adapter-static";
export default defineConfig({
plugins: [
marko({
adapter: staticAdapter()
})
]
});