nuxt-community / netlify-files-module

Nuxt 2 module to create new _headers, _redirects and netlify.toml files for Netlify or to use existing ones
MIT License
50 stars 5 forks source link

Programmatically create _redirects file through JS objects #4

Closed manniL closed 4 years ago

andre-brdoch commented 4 years ago

@manniL Is there still need for this feature? I'd be willing to make a PR :)

Also, another netlify file that might be needed is netlify.toml. For this one, the option to create it programmatically also makes sense.

manniL commented 4 years ago

Hey @andre-brdoch 👋🏻

Yes, this feature is still desired 😋

Also, another netlify file that might be needed is netlify.toml. For this one, the option to create it programmatically also makes sense.

Definitely! Maybe we could focus on netlify.toml in general (instead of _redirects and _headers because they could be "transformed" into a netlify toml).

andre-brdoch commented 4 years ago

Hey @manniL, i made a PR 😄 Let me know what you think: https://github.com/nuxt-community/netlify-files-module/pull/11

allowing all 3 types of netlify files to be either copied or created programmatically might still make sense though, even though everything could be done via toml file. However, might get a little messy with the configurations, not sure what would be the best approach.

manniL commented 4 years ago

Thanks for the effort! Will check out in the coming days 👍