Skip to content

Commit

Permalink
revert config test changes
Browse files Browse the repository at this point in the history
  • Loading branch information
miku448 committed Jan 16, 2025
1 parent dcdc400 commit b537085
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions apps/novel-builder/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ const configs: Map<'development' | 'staging' | 'production', BuilderConfig> = ne
[
'development',
{
assetsEndpoint: 'https://assets.miku.gg',
assetsEndpointOptimized: 'https://mikugg-assets.nyc3.digitaloceanspaces.com',
assetsEndpoint: 'http://localhost:8585/s3/assets',
assetsEndpointOptimized: 'http://localhost:8585/s3/assets',
uploadAssetEndpoint: 'http://localhost:8585/asset-upload',
platformAPIEndpoint: 'http://localhost:8080',
isPremiumUser: async (): Promise<boolean> => {
Expand All @@ -74,18 +74,11 @@ const configs: Map<'development' | 'staging' | 'production', BuilderConfig> = ne
return false;
}
},
genAssetLink: (asset: string, displayPrefix?: AssetDisplayPrefix) => {
genAssetLink: (asset: string) => {
if (asset.startsWith('data')) {
return asset;
} else {
return getAssetLink(
{
optimized: 'https://mikugg-assets.nyc3.digitaloceanspaces.com',
fallback: 'https://assets.miku.gg',
},
asset,
displayPrefix || AssetDisplayPrefix.NOVEL_AD_VIDEO,
);
return `http://localhost:8585/s3/assets/${asset}`;
}
},
uploadAsset: async (file: File | string, type) => {
Expand Down

0 comments on commit b537085

Please sign in to comment.