Skip to content

A Vite plugin for SSR development on Cloudflare Pages. Includes convenient build tooling + a Miniflare integration for Vite's dev server (no need for a separate proxy server).

Notifications You must be signed in to change notification settings

potatopotaro/vite-plugin-cloudflare-pages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vite-plugin-cloudflare-pages npm

STATUS WORK IN-PROGRESS

// vite.config.js
import cfPages from "vite-plugin-cloudflare-pages";

export default {
  plugins: [cfPages()],
};

Options (TODO)

export interface Options {
  /* ... */
}

Example for passing options to something (TODO)

(cloudlflare? wrangler? miniflare?)

import cfPages from "vite-plugin-cloudflare-pages";

export default {
  plugins: [
    cfPages({
      /* ... */
    }),
  ],
};

Example for another thing (TODO)

import cfPages from "vite-plugin-cloudflare-pages";

/* ... */

Using Miniflare (TODO)

Requires miniflare@^X.X.X & vite@^X.X.X

Placeholder for text, descriptions, and notes.

/* Example usage with Miniflare... */

Another placeholder for text, descriptions, and notes.

License

MIT

About

A Vite plugin for SSR development on Cloudflare Pages. Includes convenient build tooling + a Miniflare integration for Vite's dev server (no need for a separate proxy server).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published