Skip to content

Commit 4a78ec9

Browse files
oops
1 parent d432bff commit 4a78ec9

File tree

1 file changed

+14
-17
lines changed

1 file changed

+14
-17
lines changed

ui/astro.config.mjs

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
1-
import { defineConfig } from 'astro/config';
2-
import compress from "astro-compress";
3-
import react from '@astrojs/react';
1+
import { defineConfig } from 'astro/config'
2+
import compress from '@otterlord/astro-compress'
3+
import react from '@astrojs/react'
44

5-
import git from 'git-rev-sync';
6-
const version = git.tag();
7-
const versionParts = version.split('.');
8-
const versionIncremented = versionParts[0] + '.' + (parseInt(versionParts[1]) + 1);
9-
console.log('Version: ' + version + ' -> ' + versionIncremented);
10-
process.env.PUBLIC_VERSION = versionIncremented;
5+
import git from 'git-rev-sync'
6+
const version = git.tag()
7+
const versionParts = version.split('.')
8+
const versionIncremented =
9+
versionParts[0] + '.' + (parseInt(versionParts[1]) + 1)
10+
console.log('Version: ' + version + ' -> ' + versionIncremented)
11+
process.env.PUBLIC_VERSION = versionIncremented
1112

1213
export default defineConfig({
13-
14-
integrations: [
15-
compress(),
16-
react()
17-
],
18-
outDir: '../resources/dist',
19-
base: process.env.PUBLIC_BASE || '/request-docs',
20-
});
14+
integrations: [compress(), react()],
15+
outDir: '../resources/dist',
16+
base: process.env.PUBLIC_BASE || '/request-docs'
17+
})

0 commit comments

Comments
 (0)