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

chore: update siteUrs from netlify.com -> netlify.app #23808

Merged
merged 10 commits into from
May 29, 2020

Conversation

M0nica
Copy link
Contributor

@M0nica M0nica commented May 5, 2020

Description

Netlify recently changed their static site links from .com to .app. While this link about the URL changes (https://community.netlify.com/t/changes-coming-to-netlify-site-urls/8918) says that the old .com links will redirect to .app it seems to be causing CORS issues in the demo app
Screen Shot 2020-05-05 at 4 19 36 PM
Screen Shot 2020-05-05 at 4 19 46 PM

The demo app seems to work as expected at: https://gatsby-starter-blog-demo.netlify.app/new-beginnings/ whereas https://gatsby-starter-blog-demo.netlify.com/new-beginnings/ when navigated to from https://gatsby-starter-blog-demo.netlify.com throws the errors seen in the above screenshot.

The demo link on GitHub in this template's description should also be updated to point to .app instead of .com by whoever has edit access to this repo's URL box at: https://github.com/gatsbyjs/gatsby-starter-blog

Documentation

https://community.netlify.com/t/changes-coming-to-netlify-site-urls/8918

M0nica and others added 6 commits May 19, 2019 19:17
update with changes from gatsby
Netlify recently changed their static site links from .com to .app. While this link about the URL changes (https://community.netlify.com/t/changes-coming-to-netlify-site-urls/8918) says that the old .com links will redirect to .app it seems to be causing CORS issues in the demo app
@M0nica M0nica requested review from a team as code owners May 5, 2020 21:00
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label May 5, 2020
@M0nica
Copy link
Contributor Author

M0nica commented May 5, 2020

I ran the lint command locally but am not sure why there were additional formatting changes aside from my changes from .com to .app 🤔

@danabrit danabrit added type: dx and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels May 5, 2020
Copy link
Contributor

@wardpeet wardpeet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! Thank you for making these changes! Any chance you could search for these URLs in the whole codebase and change all of them? ^^

@@ -62,7 +62,7 @@ A starter is a simplified example to get up and running with Gatsby quickly and

| Name | Demo | Description |
| :-------------------------------------------------------------------: | --------------------------------------------------------------------------------------------------- | ------------------------------------------------------------- |
| [blog](https://github.com/gatsbyjs/gatsby-starter-blog) | [gatsby-starter-blog-demo.netlify.com](https://gatsby-starter-blog-demo.netlify.com/) | A starter for a blog powered by Gatsby and Markdown |
| [blog](https://github.com/gatsbyjs/gatsby-starter-blog) | [gatsby-starter-blog-demo.netlify.com](https://gatsby-starter-blog-demo.netlify.app/) | A starter for a blog powered by Gatsby and Markdown |
| [default](https://github.com/gatsbyjs/gatsby-starter-default) | [gatsby-starter-default-demo.netlify.com](https://gatsby-starter-default-demo.netlify.com/) | A simple starter to get up and developing quickly with Gatsby |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
| [default](https://github.com/gatsbyjs/gatsby-starter-default) | [gatsby-starter-default-demo.netlify.com](https://gatsby-starter-default-demo.netlify.com/) | A simple starter to get up and developing quickly with Gatsby |
| [default](https://github.com/gatsbyjs/gatsby-starter-default) | [gatsby-starter-default-demo.netlify.app](https://gatsby-starter-default-demo.netlify.app/) | A simple starter to get up and developing quickly with Gatsby |

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi! I updated to update *-demo.netlify.com to *-demo.netlify.app

starters/README.md Outdated Show resolved Hide resolved
@M0nica M0nica requested a review from a team as a code owner May 7, 2020 12:28
@wardpeet wardpeet changed the title update siteUrl for Gatsby Starter blog chore: update siteUrs from netlify.com -> netlify-app May 7, 2020
@wardpeet wardpeet changed the title chore: update siteUrs from netlify.com -> netlify-app chore: update siteUrs from netlify.com -> netlify.app May 7, 2020
Copy link
Contributor

@wardpeet wardpeet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! <3 Thank you!

@wardpeet wardpeet added the bot: merge on green Gatsbot will merge these PRs automatically when all tests passes label May 7, 2020
@wardpeet wardpeet merged commit 9834440 into master May 29, 2020
@wardpeet wardpeet deleted the update-blog-start-link-to-resolve-CORS branch May 29, 2020 13:50
@ghost ghost mentioned this pull request Jun 3, 2020
@ghost
Copy link

ghost commented Jun 3, 2020

I ran the lint command locally but am not sure why there were additional formatting changes aside from my changes from .com to .app 🤔

@M0nica Gatsby has updated the Prettier version it is using to 2.x and this version made some changes to its rule of formatting JavaScript code. Upgrading the Prettier installed in your computer should ensure that you're able to format files in a way consistent to the rest of the project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: merge on green Gatsbot will merge these PRs automatically when all tests passes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants