R/m ☞ ▲: How to Deploy Readymag Code Export to Vercel

Sergey Lisovskiy
2 min readJan 3, 2021

Readymag is a browser-based design tool, that allows you to create web pages.

With Readymag Professional plan you can use code export feature to deploy your project to your own server. Readymag projects use custom routes system based on rewrites and in exported files there will be provided example configs for Nginx and Apache servers. Without these configs the project will not work properly and the typical symptom is that pages other than first return 404 on refresh. But what if you want to deploy your project to modern services like Vercel, Netlify or Surge? Let’s see the Vercel example:

vercel.json

1. Create the ‘vercel.json’ configuration file in the root of your export directory

Here is the link to Vercel’s documentation on this

2. Fill in the rewrites code

This code does not cover the _escaped_fragmet_ routes you can see in the readymag configuration examples, but this was deprecated in 2015, so it looks like it is not necessary today.

To dive deeper see this Readymag help article. Here you can find an explanation of how routing works in Readymag projects, which will help you to build advanced configuration.

3. Enjoy

That’s all. Now you can deploy the code to Vercel and it’ll work fine.

terminal

--

--