Skip to content

Commit

Permalink
fix(objectstorage): Fix site hosting errors for domains (labring#5082)
Browse files Browse the repository at this point in the history
  • Loading branch information
HUAHUAI23 authored Sep 14, 2024
1 parent 7ef586d commit 4e95958
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse<

if (!bucket) return jsonRes(res, { code: 400, data: { error: 'bucketName is invaild' } });

const domain = process.env.SEALOS_DOMAIN;

const appName = `static-host-${bucket}`;
const result = await appLanuchPadClient.post(
'/createApp',
Expand All @@ -32,7 +34,8 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse<
protocol: 'HTTP',
openPublicDomain: true,
publicDomain: appName,
customDomain: ''
customDomain: '',
domain: domain
}
],
envs: [],
Expand Down

0 comments on commit 4e95958

Please sign in to comment.