Skip to content
Source
Sign inSign up
TanStack/cli
Open History to see the last commit

entry.preview.tsx

21 lines652 Bytes

1/*
2 * WHAT IS THIS FILE?
3 *
4 * It's the bundle entry point for `npm run preview`.
5 * That is, serving your app built in production mode.
6 *
7 * Feel free to modify this file, but don't remove it!
8 *
9 * Learn more about Vite's preview command:
10 * - https://vitejs.dev/config/preview-options.html#preview-options
11 *
12 */
13import { createQwikCity } from "@builder.io/qwik-city/middleware/node";
14import qwikCityPlan from "@qwik-city-plan";
15// make sure qwikCityPlan is imported before entry
16import render from "./entry.ssr";
17​
18/**
19 * The default export is the QwikCity adapter used by Vite preview.
20 */
21export default createQwikCity({ render, qwikCityPlan });