-
Notifications
You must be signed in to change notification settings - Fork 554
[Nebula] Feature: Farcaster Mini App #7330
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## changeset-release/main #7330 +/- ##
=======================================================
Coverage 55.57% 55.58%
=======================================================
Files 909 909
Lines 58675 58683 +8
Branches 4161 4160 -1
=======================================================
+ Hits 32609 32617 +8
Misses 25959 25959
Partials 107 107
🚀 New features to boost your workflow:
|
size-limit report 📦
|
9d0bf9b
to
acb003f
Compare
acb003f
to
34d2345
Compare
This PR allows the Nebula website to become a Farcaster Mini App.
Some important changes
next.config.ts
file the security headerX-Frame-Options
to allow asframe-ancestors
onlyself
andfarcaster.xyz
to allow the Mini App to be opened from browser, since the browser version of Farcaster opens the apps using iframes.well-known
files of the dashboard under NextJS API routes in order to dynamically generate afarcaster.json
based on the environment fileThere are 4 new environment variables that need to be added:
How to test it
In order to test the Mini App, you need to have
ngrok
installed and you need to point it athttp://nebula---localhost:3000
(ngrok won't work on local subdomains). Then, you need to set theNEXT_PUBLIC_APP_URL
variable to yourngrok
url, open the Mini App on Farcaster DevTools and generate the account association header, payload and signature. Get those values, and populate the missing env variables.When this is all done, you can test your mini app both on browser and on your phone.
PR-Codex overview
This PR focuses on enhancing the
Nebula
application with new assets, improved configuration, and additional features for frame integration, including new SVG graphics and adjustments to environment variables.Detailed summary
next.config.ts
to allowfarcaster.xyz
as a frame ancestor.@farcaster/frame-core
and@farcaster/frame-sdk
.NebulaProviders
withMiniAppProvider
.layout.tsx
.