Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App can only be deployed on domain root #1

Open
dasanra opened this issue Feb 4, 2021 · 0 comments
Open

App can only be deployed on domain root #1

dasanra opened this issue Feb 4, 2021 · 0 comments

Comments

@dasanra
Copy link

dasanra commented Feb 4, 2021

Zapper Safe app can only be deployed on domain root

The problem

We are having some issues because some assets and redirects are tied to app being served on a root domain. This is an issue when you try to deploy the app on IPFS as domains are usually following this style:
https://ipfs.io/ipfs/{ipfs_hash}

The app tries to fetch resources from:
https://ipfs.io/{resource}

When it should be trying to fetch it from:
https://ipfs.io/ipfs/{ipfs_hash}/{resource}

Solution

Serving static files using relative path instead of global path
Be careful with internal app redirects, they are also tied to global path

Thank you!

@dasanra dasanra changed the title App can only be deployed on server root App can only be deployed on domain root Feb 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant