Fix: smithery deployment

This commit is contained in:
Barry Yip 2025-06-07 23:29:47 +08:00
parent 2bb68155f1
commit f2c5a97f41
2 changed files with 9 additions and 6 deletions

View File

@ -7,8 +7,8 @@ WORKDIR /app
# Copy package files
COPY package.json package-lock.json ./
# Install dependencies without running scripts
RUN npm install --ignore-scripts
# Install dependencies
RUN npm ci
# Copy source code
COPY . .

View File

@ -7,7 +7,10 @@ startCommand:
properties:
discordToken:
type: string
description: The bot token for Discord integration.
commandFunction:
|-
config => ({command: 'node', args: ['./build/index.js', '--transport', 'http', '--port', '8080'], env: {DISCORD_TOKEN: config.discordToken}})
description: "The bot token for Discord integration."
commandFunction: |
config => ({
command: 'node',
args: ['./build/index.js', '--transport', 'http', '--port', '8080'],
env: {DISCORD_TOKEN: config.discordToken}
})