Skip to content

Inlined assets are read from the CDN in production #57

Open
@andrewcroome

Description

@andrewcroome

Where we have inlined scripts in layouts, such as the below, the Assets#read method reads them remotely from the asset host, rather than the filesystem.

script
  == page.assets.read("main__inline-admin-header.js")

We should change Assets behaviour so that it still reads from the filesystem in this instance.

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