Skip to content

Commit 3e1e6df

Browse files
committed
Fix local robots.txt generate
1 parent 4e1153e commit 3e1e6df

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

astro.config.mjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
import { defineConfig } from 'astro/config';
33
import starlight from '@astrojs/starlight';
44
import mtasaStarlightThemePlugin from '@multitheftauto/starlight-theme-mtasa';
5-
import { SITE_TITLE, SITE_URL } from './src/content.constants';
5+
import { SITE_TITLE, SITE_URL, SITE_PREVIEW_URL } from './src/content.constants';
66

77
const isDeploy = process.env.CI === 'true';
8-
const siteBaseUrl = isDeploy ? SITE_URL : undefined;
8+
const siteBaseUrl = isDeploy ? SITE_URL : SITE_PREVIEW_URL;
99

1010
export default defineConfig({
1111
site: siteBaseUrl,

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "starlight",
2+
"name": "help.multitheftauto.com",
33
"type": "module",
4-
"version": "0.0.1",
4+
"version": "1.0.0",
55
"scripts": {
66
"dev": "astro dev",
77
"start": "astro dev",

src/content.constants.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
export const SITE_TITLE = 'Multi Theft Auto: Help';
22
export const SITE_URL = 'https://help.multitheftauto.com';
3+
export const SITE_PREVIEW_URL = 'https://help.preview.multitheftauto.com';
34
export const CDN_URL = 'https://mirror-cdn.multitheftauto.com';
45
export const NIGHTLY_URL = 'https://nightly.multitheftauto.com';
56
export const LINUX_URL = 'https://linux.multitheftauto.com';

0 commit comments

Comments
 (0)