sitemap-module | Sitemap Module for Nuxt | Search Engine Optimization library
kandi X-RAY | sitemap-module Summary
kandi X-RAY | sitemap-module Summary
Automatically generate or serve dynamic sitemap.xml for Nuxt projects!.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of sitemap-module
sitemap-module Key Features
sitemap-module Examples and Code Snippets
Community Discussions
Trending Discussions on sitemap-module
QUESTION
Is there any way of generating a Google : ads.txt
file every time i build my SSR project?
There is a module called: sitemap-module
from nuxt-community
, it is used to generate a sitemap
xml file, and that file can be accessed by http://domain.tls/sitemap.xml. and i want something like that.
So currently i'am achieving this by building the project, then manually put ads.txt
it in : /var/www/site/.nuxt/dist/client/
,
The problem with this is that everytime i rebuild the project i loose /var/www/site/.nuxt/dist/client/
folder then i have to add ads.txt
file again.
I would like to know how i can hook up my code to tell nuxt to generate ads.txt
file and put it in /var/www/site/.nuxt/dist/client/
Not sure if it makes sense, but i hope someone will understand.
...ANSWER
Answered 2019-Aug-14 at 07:30Haven't found any way of solving this in nuxt
, so i decided to redirect all https://domain.tld/ads.txt in Nginx configuration.
/etc/nginx/sites-available/default.conf
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install sitemap-module
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page