If your workspace’s Dashboards & Apps page doesn’t show the Next.js App, contact support.
TL;DR
- The Next.js App is SourceMedium’s open-source Next.js reporting app: a private website with ten ready-made reports on your sales, marketing and customers. SourceMedium hosts it and keeps it running.
- A workspace Admin or Editor creates it in one click from Dashboards & Apps. Your team opens it with their SourceMedium sign-in.
- To change it, connect your own copy of SourceMedium’s public template on GitHub. Every push builds a private preview. Nothing goes live until an Admin or Editor publishes it. The exception is when they choose to publish the default branch automatically. Restore previous version brings back the version before it.
- To work on it on your computer, run
pnpm signinin the app’s folder. To bring in later improvements to the template, runpnpm template:update.
Your app’s address
Your app opens at<workspace>-app.sourcemedium.app, for example democo-app.sourcemedium.app. Hosted dashboards for the same workspace use <workspace>-dashboards.sourcemedium.app. Everyone who opens either signs in with SourceMedium, and each person’s access is checked on every visit.
Create the app
You need an Admin or Editor role in the workspace and an active warehouse that has delivered your data. A workspace has one app.- Open Dashboards & Apps and find Next.js App.
- Choose Set up. SourceMedium sets up the app and checks its connection to your warehouse. You can leave the page while it does.
- It moves to Your dashboards at the top of the page. When it shows Open app, everyone with workspace-wide access can open it. Access limited to specific brands or stores cannot.
Compare ad creatives
Open Creatives and set the store and dates. The gallery shows the highest-spend ads first by default. The amount labeled linked spend covers ads with a creative ID. Campaign or affiliate spend without a creative ID still counts in Paid marketing. For totals by format or launch week, choose Performance summary above the gallery.- Choose Compare creative on an ad. Its thumbnail and title appear in the selection tray. When titles match, the tray shows details such as platform, format, start date or creative ID to distinguish the picks.
- Select a second ad, then choose View comparison. You can compare up to four. Each column uses the same store, dates and filters. Each percentage change compares that ad with its own earlier performance. Platforms can credit conversions differently.
- Choose Preview above a column to enlarge its media. Browse additional images or play a video when the source supplies them. Close the preview to return to the same comparison.
Before and after on phone and desktop
These screenshots show the same DemoCo report for October 23 through November 19, 2026. In the earlier layout, scrolling through the summary came before reaching the ads. The current layout brings the first ad into the opening screen on both devices.- Phone
- Desktop
Before
After
After selecting two ads



Change the app’s code
The app is built from SourceMedium’s public template, source-medium/sm-app-template. Change a metric, rework a view or add your own report in your own copy, by hand or with a coding agent. SourceMedium keeps hosting it at the same address, with the same sign-in and data. SourceMedium builds copies of its template, not other Next.js apps.- On the app’s row in Dashboards & Apps, choose Customize the code. Under Copy SourceMedium’s template, choose Create repository. GitHub makes a private copy in your account or organization.
- Under Connect your copy, choose Connect GitHub and install SourceMedium’s GitHub App on that account, for that repository. Back in SourceMedium, pick the repository if it asks. SourceMedium then builds its default branch.
- From then on, every push to a branch builds a private preview. It shows under the app’s row, in Previews. It also shows on the commit in GitHub as the SourceMedium preview status, with the preview’s address or why the build failed.
- Admins and Editors open the preview signed in to SourceMedium and choose Publish to make it the live version. Restore previous version brings back the version before it.
- To have pushes to the default branch go live on their own, choose Publish main automatically in Previews. The label names your default branch. A merge to
mainworks this way on most hosts. Each new push to that branch goes live once its preview is checked with your data. Other branches stay previews, and a build that fails never goes live. What is on the branch when you turn it on stays a preview. Publishing another version by hand, Restore previous version included, pauses it until you choose Resume publishing main automatically.
.github/workflows/sourcemedium.yml. Once you connect the repository through the GitHub App, the workflow sends nothing. You can delete it.
Work on the app on your computer
In the app’s folder, run:pnpm signin saves your access in .env.local, which is never committed. Then run pnpm dev and open the address it prints. You see your workspace’s real data, read as you.
Your sign-in lasts 30 days. Run pnpm signin again after that. Only workspace Admins and Editors can sign in this way. A coding agent in the cloud has no browser, so give it a token of its own. In the app’s settings, choose Manage developer tokens, name one and choose Create token. Every token, including each computer’s sign-in, is listed there and can be revoked. The template’s hosted app guide has the details.
Get the template’s improvements
SourceMedium keeps improving the template. To bring those changes into your copy without losing yours, commit your work and run:What a hosted app can do
- Read your data. The app reads your workspace’s reporting data through SourceMedium, never directly. Queries only read and run for at most 30 seconds. A query returns up to 1,000 rows by default and 10,000 at most. One that would return more fails unless the app asks for a partial result.
- Stay on its own address. Every app shares the
sourcemedium.appdomain with other workspaces’ apps, so the app’s pages can call only their own address. Client-side analytics or other services called from the page are blocked. Images, scripts, styles and links to other sites work as usual. Forms and other changes reach the app only from its own pages, and the app can’t install a service worker.




