#Cloudflare Pages - Deployment failed

11 messages · Page 1 of 1 (latest)

sage jewel
#
{
    "extends": "astro/tsconfigs/strict",
    "include": [".astro/types.d.ts", "**/*"],
    "exclude": ["dist"],
    "compilerOptions": {
        "baseUrl": ".",
        "jsx": "react-jsx",
        "jsxImportSource": "react"
    }
}
import { defineConfig, passthroughImageService } from "astro/config";

import tailwindcss from "@tailwindcss/vite";

import react from "@astrojs/react";

// https://astro.build/config
export default defineConfig({
    vite: {
        plugins: [tailwindcss()],
    },

    integrations: [react()],

    image: {
        service: passthroughImageService(),
    },
});
  • npm run build works locally but not on Cloudflare
  • Previously I had "@/*" and "~/*". Removing it doesn't work.
  • Doesn't work on Cloudflare worker nor Cloudflare Pages
#
[WARN] [vite] "matchHostname", "matchPathname", "matchPort" and "matchProtocol" are imported from external module "@astrojs/internal-helpers/remote" but never used in "node_modules/astro/dist/assets/utils/remotePattern.js" and "node_modules/astro/dist/assets/services/service.js".
#

^ warning from local npm run build

robust mulch
#

maybe try the renaming trick, i know you already mentioned you were careful about case sensitivity but stranger things have happened

git mv src/components/careers/Hero.astro tmp && git mv tmp src/components/careers/Hero.astro

#

then commit and push that

sage jewel
#
fatal: not under version control, source=src/components/careers/Hero.astro, destination=tmp/Hero.astro
robust mulch
#

Is that the right path for that component?

#

What about

git ls-files | grep -i hero.astro

thin sage
#

Maybe try deleting your local .git folder and then doing a git init and syncing it back to GitHub.

sage jewel