|
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' |
4 | 4 |
|
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 |
11 | 12 |
|
12 | 13 | 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