#Astro-preload Integration not generating assets on Vercel

2 messages · Page 1 of 1 (latest)

astral moss
#

Has anyone used the astro-preload Integration that downloads remote images during the build process?

I need this integration to a download a bunch of S3 pre-signed URLs with an expiry during a static build, but in assets/preloaded is not getting generated in the Vercel build.

In he local build the assets folder is being generated. I am not sure what is going wrong. It'll be awesome if someone is able to help out here!

My snippets from astro-config file:

export default defineConfig({
  env: {
    schema: {
      NODE_ENV: envField.string({ context: "server", access: "public" }),
      SMTP_USER: envField.string({ context: "server", access: "public" }),
      SMTP_PASSWORD: envField.string({ context: "server", access: "secret" }),
      NOTION_KEY: envField.string({ context: "server", access: "secret" }),
      NOTION_BLOG_ID: envField.string({ context: "server", access: "public" }),
      GOOGLE_SHEET_ID: envField.string({ context: "server", access: "public" }),
      GOOGLE_PROJECT_ID: envField.string({
        context: "server",
        access: "public",
      }),
      GOOGLE_SERVICE_ACCOUNT_EMAIL: envField.string({
        context: "server",
        access: "public",
      }),
      GOOGLE_PRIVATE_KEY_ID: envField.string({
        context: "server",
        access: "secret",
      }),
      GOOGLE_PRIVATE_KEY: envField.string({
        context: "server",
        access: "secret",
      })
    },
  },
  output: "server",
  integrations: [
    tailwind(),
    sitemap(),
    prefetch({
      selector: "a[href^='/']",
    }),
    react({ experimentalReactChildren: true }),
    partytown({ config: { forward: ["dataLayer.push"] } }),
    preload(),
    compress(),
  ],
  adapter: vercel({
    webAnalytics: {
      enabled: true,
    },
  }),
  site: "https://prannaykedia.com",
});
#

Astro-preload Integration not generating assets on Vercel