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
502 stars 38 forks source link

please support cloudflare #182

Open kingwrcy opened 11 months ago

kingwrcy commented 11 months 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 10 months ago

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

kyeshmz commented 9 months ago

He means he wants to use with cloudflare ssr