Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

please support cloudflare #182

Open
kingwrcy opened this issue Oct 24, 2023 · 2 comments
Open

please support cloudflare #182

kingwrcy opened this issue Oct 24, 2023 · 2 comments

Comments

@kingwrcy
Copy link

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
Copy link

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

@kyeshmz
Copy link

kyeshmz commented Dec 19, 2023

He means he wants to use with cloudflare ssr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants