ylc395 / joplin-plugin-pages-publisher

A Joplin plugin to generate static blog website from picked notes, and publish it as Github Pages
109 stars 19 forks source link

How to add config file in the root folder? #11

Closed dudukee closed 2 years ago

dudukee commented 2 years ago

Thx for your awesome plugin.

When I deploy on vercel, sub page return 404 error, I should create a config file vercel.json in root folder and add some config in it.

I created a theme folder, and add this .json in the theme folder, but when i generated pages, the .json missed.

So how to add config file in the root folder? Could U please share some idea for me.

ylc395 commented 2 years ago

ylc395.pagesPublisher.jpl.zip

Try this version to see whether vercel.json will be copyed into generated directory. If it works, I will release it as new version.

dudukee commented 2 years ago

@ylc395 it not worked

ylc395 commented 2 years ago

ylc395.pagesPublisher.jpl.zip

What about this? @dudukee

dudukee commented 2 years ago

vercel.json copyed into generated directory , BUT the main.css in the _assets disappeared :joy:

ylc395 commented 2 years ago

ylc395.pagesPublisher.jpl.zip

This would work I promise. @dudukee

dudukee commented 2 years ago

YES it works as expected, thx for your work!

ylc395 commented 2 years ago

add this feature in v1.7.0