Skip to content

Vincent-the-gamer/vincent

Repository files navigation

vincent

My personal website.


Visit

https://blog.vince-g.xyz/

Router Mode

Web History + SSG - Default

Reverse proxy is required to fix 404 on refreshing. ╭(╯^╰)╮

export const createApp = ViteSSG(
  App,
  {
    routes,
  },
  ({ router, app, isClient }) => {
    ....
  },
)

then

pnpm run build

Web Hash History + SPA - For GitHub Pages

export const createApp = ViteSSG(
  App,
  {
    routes,
    history: createWebHashHistory()
  },
  ({ router, app, isClient }) => {
    ....
  },
)

then

pnpm run spa-build

License

Code is licensed under MIT.

Words and images are licensed under CC BY-NC-SA 4.0.