Skip to content

Add default environment variables to PWAΒ #13

@NyanKiyoshi

Description

@NyanKiyoshi

I received an email from somebody that was confused how to deploy the compose file as it would build with default environment variables, thus API_URL was set to localhost where in the case of that user, they needed it to point to a public IP address.

I suggest that we include those variables with the default values.

Those are (for dashboard):

Name Default
APP_MOUNT_URI http://localhost:9000/dashboard/
Adapt it for storefront, and check they have one.
API_URI http://localhost:8000/graphql/
STATIC_URL http://localhost:9000/
Please check it, not sure about it.

Otherwise, another solution, would be serving everything on the same port but with different path. Which is way easier, but we would need to add nginx for that in order to still be able to use npm start instead of npm run build.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions