Пересобранный и видоизмененный conky для ОСГОС
This commit is contained in:
commit
3a48cf8c86
738 changed files with 217718 additions and 0 deletions
28
web/next.config.mjs
Normal file
28
web/next.config.mjs
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
// @ts-check
|
||||
import { spawn } from 'child_process'
|
||||
|
||||
const config = async (_phase, { _defaultConfig }) => {
|
||||
const gitHash = await new Promise((resolve) => {
|
||||
const git = spawn('git', ['rev-parse', '--short', 'HEAD'])
|
||||
git.stdout.on('data', (data) => {
|
||||
resolve(data.toString().trim())
|
||||
})
|
||||
git.on('error', () => {
|
||||
resolve(undefined)
|
||||
})
|
||||
})
|
||||
|
||||
/**
|
||||
* @type {import('next').NextConfig}
|
||||
*/
|
||||
const nextConfig = {
|
||||
publicRuntimeConfig: {
|
||||
modifiedDate: new Date().toISOString(),
|
||||
modifiedYear: new Date().getFullYear(),
|
||||
gitHash,
|
||||
},
|
||||
}
|
||||
return nextConfig
|
||||
}
|
||||
|
||||
export default config
|
||||
Loading…
Add table
Add a link
Reference in a new issue