Skip to content

QUESTION - With nuxt generate, can I put sw.js file into a subdirectory? #440

@avblink

Description

@avblink

I'm serving my nuxt generated folder behind nginx proxy on a sub url. (https://localhost/preview)

Need to serve sw.js from a subfolder, alternatively need to give it a different name so it can be easily differentiated
by nginx proxy.

I tried with publicPath, but it still puts the sw.js file into the root of the dist folder.

Is there any way of achieving this?

Thank you in advance.

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