Add a blog to Replit
Give your Replit app a blog at blog.yourcompany.com with one DNS record, or at /blog if it's a Next.js app. BlogFrame writes, hosts and maintains the posts.
Apps built on Replit can be anything from a Next.js site to an Express server. However yours is built, BlogFrame can run the blog next to it, so you don't have to build post pages or write posts inside your app.
| Address | Example | On Replit |
|---|---|---|
| Subdomain | blog.yourcompany.com | Every plan, including Free |
| Subfolder | yourcompany.com/blog | Creator and up |
Subdomain
Open your project in the dashboard and enter the subdomain you want, for example blog.yourcompany.com. The dashboard shows the CNAME record to add.
Add the CNAME where your domain's DNS is managed, usually where you bought the domain.
Wait for the record to apply. This usually takes a few minutes and can take up to an hour. BlogFrame sets up SSL for you.
Subfolder
If your Replit app is a Next.js app, add the rewrite to next.config. For other kinds of app, a subdomain is the simple option. In your project, enter yourcompany.com/blog under Subfolder on your website. The dashboard shows the rule with your project's real address in place of <your-project>. Add it, deploy, then click Check connection.
Next.js
In next.config.js (or next.config.ts):
async rewrites() {
return [
{ source: "/blog", destination: "https://customers.blogframe.app/_p/<your-project>/blog" },
{ source: "/blog/:path*", destination: "https://customers.blogframe.app/_p/<your-project>/blog/:path*" },
]
},Add this inside your Next.js config, then deploy. Link to the blog with a normal <a> tag rather than <Link>.
Tips for Replit
- Use a different subdomain for the blog than the one your Replit deployment uses for the app.
More on addresses: Connect your domain.