Get access to the endpoints here: https://countries.xamu.com.co/
Data provided by: https://github.com/dr5hn/countries-states-cities-database
npm i nuxt-countries-api
# or with yarn
yarn add nuxt-countries-api
Add to modules
in nuxt.config.ts
:
// nuxt.config.ts, basic setup
export default defineNuxtConfig({
modules: ["nuxt-countries-api"],
});
// nuxt.config.ts, example configuration
export default defineNuxtConfig({
modules: ["nuxt-countries-api"],
countries: {
base: "/_countries",
},
});
Name | Type | Default | Description |
---|---|---|---|
base | string | "/api/countries" | Base path to be used on nuxt server |
$ yarn dev
preserveSymlinks could break the module