https://github.com/skyost/nuxtcnamegenerator
A Github Pages CNAME generator for Nuxt applications.
https://github.com/skyost/nuxtcnamegenerator
cname generator github nuxt pages
Last synced: about 2 months ago
JSON representation
A Github Pages CNAME generator for Nuxt applications.
- Host: GitHub
- URL: https://github.com/skyost/nuxtcnamegenerator
- Owner: Skyost
- Created: 2024-02-04T11:00:50.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-08-07T08:23:01.000Z (11 months ago)
- Last Synced: 2025-08-22T06:51:16.541Z (10 months ago)
- Topics: cname, generator, github, nuxt, pages
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/nuxt-cname-generator
- Size: 225 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# NuxtCnameGenerator
A Github Pages CNAME generator for Nuxt applications.
## Usage
First, add `nuxt-cname-generator` dependency to your project.
```bash
# Using pnpm.
pnpm add -D nuxt-cname-generator
# Using yarn.
yarn add --dev nuxt-cname-generator
# Using npm.
npm install --save-dev nuxt-cname-generator
```
Then, add `nuxt-cname-generator` to the `modules` section of `nuxt.config.ts`.
```ts
export default defineNuxtConfig({
modules: [
// Some other modules.
'nuxt-cname-generator'
]
})
```
Finally, configure it in your `nuxt.config.ts`.
```ts
export default defineNuxtConfig({
// Other config options.
cname: {
host: 'example.com'
}
})
```
That's it !
Your CNAME will be available in the `dist` folder when you will run `nuxi generate`.
## License
Licensed under the MIT license. See [here](https://github.com/Skyost/ThatLatexLib/blob/master/LICENSE).