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

Static website deployed with arkb doesn't work #83

Closed
lilpacy opened this issue Jan 1, 2023 · 3 comments
Closed

Static website deployed with arkb doesn't work #83

lilpacy opened this issue Jan 1, 2023 · 3 comments

Comments

@lilpacy
Copy link

lilpacy commented Jan 1, 2023

I deployed my static website here
But assets not loaded.

I deployed it with this command.

arkb deploy dist --use-bundler https://node2.bundlr.network --tag-name DEPLOY --tag-value foobar

It seems manifest.arkb was not created in dist folder.
Maybe it's the problem i guess.

@lilpacy
Copy link
Author

lilpacy commented Jan 1, 2023

Sorry, I found arkb file was created.

{
  "manifest": "arweave/paths",
  "version": "0.1.0",
  "index": {
    "path": "index.html"
  },
  "paths": {
    "index.html": {
      "id": "0psjwGtVYDvvZoxBCiVsQzREp3pTMGON7Jr2DVx0xN4"
    },
    "favicon.png": {
      "id": "Vsmue6GSm9HjKfLH6Wel-IkTO8ZJcXHS6gUclBiL460"
    },
    "profile.png": {
      "id": "IvGGA7btluNbk2_47nEXB4KF47wU1jKX_-1_awdE0go"
    },
    "githubpages.svg": {
      "id": "wPzU7V1NxoWYDWVIPgjRgXgg_7zT6FXMr15EU38v05M"
    },
    "github.svg": {
      "id": "0VJ1D2NkRrZMM7GeSPjmmedM1DVrraOAXFpQVvG495s"
    },
    "og-image.png": {
      "id": "vNgQLjmH3_tPAxPWbpt5iSxOVjJJgmf_TZxiDIRJxuw"
    },
    "mask.svg": {
      "id": "1K6Ri9-AG4hkfeBPiq2PpMG5nU8qEi9VjLmAVJ4o6r4"
    },
    "qiita.svg": {
      "id": "5iFcBJW4JCb7s-nQ7bI1A4baf6tR_t020h6svDY_NHA"
    },
    "vite.svg": {
      "id": "qJXLa6bpJ7u6J6ahsWVVZNllsS_NTV6kBohwO2O_SQ8"
    },
    "twitter.svg": {
      "id": "NeBQuY7FmUsx3woqPhXqFm_KouapgFAx6niLhKChF9M"
    },
    "wordpress.svg": {
      "id": "c3aQOWkIYI_mnyh0QJTwwL0gjNB8rnURW4d2lCTYMk4"
    },
    "vrchat.svg": {
      "id": "5XS2k7I_YXqqISvOKUsQu2sIJjq8djcFk6epBZ7JeUI"
    },
    "zenn.svg": {
      "id": "1K38SD7A8SnKAIryrmzI6heb2bvJ9WfOYSm4WkaPQME"
    },
    "about/index.html": {
      "id": "s_gf19J-N4MgNq8X6JKA02_HFQ0xDY2hWSf09HACaR0"
    },
    "assets/index-7436fb96.css": {
      "id": "jBiKCjo2UIwL2K7L1iBGgN9ihGK3ksRasUUQVirEChY"
    },
    "assets/about-3b376b19.js": {
      "id": "PV4BzW3rWFtjAd9BYNsd8VKgsJr1dZZjxj3_QpB-veQ"
    },
    "assets/index-faffab99.css": {
      "id": "LK_i7HRosot8nV5ftHMOyf04_v5oF9oNGqBF91Z6uvs"
    },
    "assets/main-0625be69.js": {
      "id": "Iow052b2BTcUoNmOViBP7cS4bxl2oVDYbjhI7Ep_Y28"
    },
    "assets/template-9e8f985c.js": {
      "id": "oz6wbdm9ho4ydFQSZU1V2tI2cqY1ZNbA6ZYf5dPX4BA"
    },
    "assets/template-e312dc96.css": {
      "id": "KYbpqRp2Aoi_vkpiqXWfxBNp5YalcyZk3wZZhw2RwO4"
    }
  }
}

Then I don't know why my static website doens't work.

@lilpacy lilpacy changed the title Arkb doesn't create manifest.arkb Static website deployed with arkb doesn't work Jan 1, 2023
@lilpacy
Copy link
Author

lilpacy commented Jan 2, 2023

Finally, I found out it's absolute/relative path problem at my MPA settings🙏

It's fixed here.
https://arweave.net/zutTLi06vGr1FFKEpBryT7rI8RoEcDW8hp8Oc3xPY0s

@lilpacy lilpacy closed this as completed Jan 2, 2023
@unixvb
Copy link

unixvb commented Mar 9, 2024

For anyone who will face the same problem for a React app created with create-react-app, just add

"homepage": ".",

into your 'package.json'

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

2 participants