fix: cannot upload attachment files in docker (#241)

This commit is contained in:
kimatata
2025-07-12 16:48:56 +09:00
committed by GitHub
parent a42c3e3c5c
commit ed1e90c714
13 changed files with 50 additions and 33 deletions

View File

@@ -550,19 +550,18 @@ module.exports = {
},
]);
const backendOrigin = process.env.BACKEND_ORIGIN || 'http://localhost:8001';
await queryInterface.bulkInsert('attachments', [
{
title: 'Selenium logo',
detail: '',
path: `${backendOrigin}/uploads/861px-Selenium_Logo.png`,
filename: '861px-Selenium_Logo.png',
createdAt: new Date(),
updatedAt: new Date(),
},
{
title: 'vitest logo',
detail: '',
path: `${backendOrigin}/uploads/logo-shadow.svg`,
filename: 'logo-shadow.svg',
createdAt: new Date(),
updatedAt: new Date(),
},