idyll icon indicating copy to clipboard operation
idyll copied to clipboard

Publish fails when project name has special characters

Open tomvaillant opened this issue 4 years ago • 5 comments
trafficstars

Hi Matthew, hope you're doing alright! Slowly but surely becoming more familiar with Idyll and excited to continue getting better over time:)

Trying to publish a Scrollytelling post, console is confirming project deployed at https://idyll.pub/post/stella_1-65f57118b1f58a332968bc5f/

However if you open the URL you'll see the issue. "Deployment not found" "vercel.app might be available". Hoping you might have seen this one before?

Thanks!

tomvaillant avatar Apr 10 '21 15:04 tomvaillant

Hey @buriedsignals!

I've seen this occasionally happen with names containing special characters that our hosting provider doesn't like. If you follow these steps does it work:

  • Change the name of your project in package.json from stella_1 to stella1
  • Remove the publish token: rm .idyll/token
  • Re-run the deploy idyll build && idyll publish

If that does the trick it would indicate an issue with _. In that case we should add some logic to warn people about it, or automatically generate a URL that doesn't have those issues

mathisonian avatar Apr 10 '21 18:04 mathisonian

Hey @mathisonian thank you that fixed it. Appreciate you sending through a detailed answer so quickly. Have a great Sunday!

tomvaillant avatar Apr 11 '21 11:04 tomvaillant

Glad that took care of it @buriedsignals. I'm going to leave this issue open until we have a better fix available

mathisonian avatar Apr 13 '21 02:04 mathisonian

@mathisonian could you assign this to me?

mrviniciux avatar Apr 18 '22 22:04 mrviniciux

You got it @mrviniciux. A PR is very welcome here - I think the most straightforward approach will be to sanitize the project name in the publish command.

mathisonian avatar Apr 18 '22 23:04 mathisonian