yassinedoghri / astro-i18next

An astro integration of i18next + some utility components to help you translate your astro websites!
https://astro-i18next.yassinedoghri.com
MIT License
521 stars 37 forks source link

please support cloudflare #182

Open kingwrcy opened 1 year ago

kingwrcy commented 1 year ago

npm run dev is ok.

but npm run build is failed,please!

// astro.config.mjs
export default defineConfig({
  output: "server",
  site: "https://xxx.net",
  integrations: [AstroPWA(), vue(), astroI18next()],
  adapter: cloudflare(),
});

  File:
    dist/$server_build/chunks/pages/_num_-_unit_-_rest__aeb29c6c.mjs:2:22
  Code:
    1 | import i18next, { t, changeLanguage } from 'i18next';
    > 2 | import * as url2 from 'url';
        |                      ^
      3 | import '@proload/core';
      4 | import '@proload/plugin-tsm';
      5 | import { d as createAstro, e as createComponent, r as renderTemplate, m as maybeRenderHead, f as renderComponent, u as unescapeHTML, F as Fragment, s as spreadAttributes, g as addAttribute, h as renderSlot, i as renderHead } from '../astro_a778e668.mjs';```

Is there anyone else same error with me?
Rigel772 commented 1 year ago

What do you need adapter: cloudflare() for? You can deploy astro to cloudflare from your git repo without any adapters...

kyeshmz commented 11 months ago

He means he wants to use with cloudflare ssr