Skip to content

Specifying base in astro config gets duplicated in path update and causes builds to error #144

@ndj91

Description

@ndj91

Hello,

Found a bug which results in unable to build.

When base is set in astro.config -> defineConfig.
The value set for base is duplicated when generating sriHashes.

example astro.config.mjs

export defineConfig({
  base: './ap/pr-sit-pr47',
  integrations: [
    vue(),
    shield(
      {
        sri: {
          enableMiddleware: true, // MUST be enabled for dynamic pages!
          hashesModule: modulePath, // SHOULD be set!
        },
      },
    ),
  ],
})

image

Can this be looked into please?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions