Replies: 1 comment 3 replies
-
And if you don't want the server to restart when changing certain files, then you can define it as follows: {
"metaFiles": [
{
"pattern": "documentation/**",
"reloadServer": false
}
]
} |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Typically, typescript ignores non ts files such as .json, .yml during build. This turned out to be a problem for me while I was working a project with V5. I had a documentation folder which contained a .yml file, an OpenApi3 documentation for my API, and I needed this folder to be copied over to the build directory during build time so that it will be deployed with the rest of my application. I solved this problem by writing an ace command that copied the documentation folder to the build directory after build, 'postbuild'. The ace command was just a wrapper around 'copyfiles' package. It worked fine.
However, while working on my current project, it turned out there's a better way to achieve the same thing without writing any command or installing any package for it. All I did was just to register the path to the folder I wanted to be copied over to build directory in .adonisrc.json file and adonis takes over from there. Snippet:
Beta Was this translation helpful? Give feedback.
All reactions