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

Add vercel blog starter to examples #86

Merged
merged 3 commits into from
Oct 12, 2024

Conversation

shashankboosi
Copy link
Contributor

@shashankboosi shashankboosi commented Oct 10, 2024

Added the vercel blog starter to examples as a way to test applications. I used this from vercel which wasn't working but fixed it to the needs of the adapter

You can run the new example using pnpm --filter vercel-blog-starter preview:worker

Copy link

changeset-bot bot commented Oct 10, 2024

🦋 Changeset detected

Latest commit: deccf66

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@opennextjs/cloudflare Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

pnpm-lock.yaml Show resolved Hide resolved
@vicb
Copy link
Contributor

vicb commented Oct 10, 2024

I used this from vercel which wasn't working but fixed it to the needs of the adapter

One thing you can do is two separate commit:

  • first commit would be "import blog start at "
  • second commit would be "adapt for cloudflare worker"

It's nice to have the required changes in the history

Copy link

pkg-pr-new bot commented Oct 10, 2024

Open in Stackblitz

pnpm add https://pkg.pr.new/@opennextjs/cloudflare@86

commit: deccf66

@shashankboosi
Copy link
Contributor Author

Made all the recommended changes and had the commits in the flow, that is nice to read

@shashankboosi
Copy link
Contributor Author

shashankboosi commented Oct 12, 2024

I had to delete the commit where I remove pnpm-lock because currently there is no way to run github actions without a lock file(they all will fail) and there is an open issue about it here.

Maybe if you want, I can investigate it as a separate issue

@vicb
Copy link
Contributor

vicb commented Oct 12, 2024

I had to delete the commit where I remove pnpm-lock

My bad, it should not be removed.
I was looking at the changes too qhuickly and thought it was nested in the blog folder.
The root lock file should not be removed.

Copy link
Contributor

@vicb vicb left a comment

Choose a reason for hiding this comment

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

LGTM, thank you so much!

2 things:

  • could you please add a patch changeset
  • it would be nice to add a basic e2e test, you can check i.e. the API example. If you are willing to do this, you can do it in a follow up PR when you have time. No rush.

@shashankboosi shashankboosi requested a review from vicb October 12, 2024 08:12
@shashankboosi
Copy link
Contributor Author

@vicb I have added the changeset. In regards to adding an e2e test, I will do it in another PR as I don't want to keep holding this one :)

Created using `pnpm create next-app --example blog-starter vercel-blog-starter`
using pnpm `pnpm run code:fixes`
@vicb vicb force-pushed the vercel-blog-example branch from 33211ee to deccf66 Compare October 12, 2024 09:53
@vicb
Copy link
Contributor

vicb commented Oct 12, 2024

I don't want to keep holding this one :)

Yep, makes sense.

Thank for adding the example!

@vicb vicb merged commit 5bceecc into opennextjs:main Oct 12, 2024
7 checks passed
@shashankboosi shashankboosi deleted the vercel-blog-example branch October 12, 2024 10:59
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

Successfully merging this pull request may close these issues.

2 participants