Skip to content

hungtcs-lab/vite-react-template

Repository files navigation

Vite React Antd Template

Plugins

RedirectAll

import history from "connect-history-api-fallback";

function redirectAll() {
  return {
    name: "rewrite-all",
    configureServer(server: ViteDevServer) {
      return () => {
        const handler = history({
          disableDotRule: true,
          rewrites: [{ from: /\/$/, to: () => "/index.html" }],
        });

        server.middlewares.use((req, res, next) => {
          handler(req, res, next);
        });
      };
    },
  };
}

FQ

How should the language codes be formatted?

https://www.i18next.com/how-to/faq#how-should-the-language-codes-be-formatted

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published