Merge pull request #2514 from Maxime-J/dev-fixes

Dev fixes
This commit is contained in:
Mike Cao 2024-02-15 19:13:40 -08:00 committed by GitHub
commit b50bf535de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ ALTER TABLE `website` ADD COLUMN `created_by` VARCHAR(36) NULL,
ADD COLUMN `team_id` VARCHAR(36) NULL;
-- MigrateData
UPDATE "website" SET created_by = user_id WHERE team_id IS NULL;
UPDATE `website` SET created_by = user_id WHERE team_id IS NULL;
-- DropTable
DROP TABLE `team_website`;

View File

@ -27,7 +27,7 @@ export function App({ children }) {
{children}
<UpdateNotice user={user} config={config} />
{process.env.NODE_ENV === 'production' && !pathname.includes('/share/') && (
<Script src={`/telemetry.js`} />
<Script src={`${process.env.basePath}/telemetry.js`} />
)}
</>
);