fix: bundle mobile UI into dental-server/public_mobile so docker can serve it
continuous-integration/webhook Deploy concluído (VPS4)
continuous-integration/webhook Deploy concluído (VPS4)
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -752,7 +752,7 @@ app.get('*', (req, res, next) => {
|
|||||||
|
|
||||||
// Serve the Mobile Prototype Bundle for mobile devices or explicit /mobile route
|
// Serve the Mobile Prototype Bundle for mobile devices or explicit /mobile route
|
||||||
if (req.path.startsWith('/mobile') || isMobile) {
|
if (req.path.startsWith('/mobile') || isMobile) {
|
||||||
return res.sendFile(path.join(__dirname, '..', 'scoreodonto-mobile', 'Score RX Mobile.html'));
|
return res.sendFile(path.join(__dirname, 'public_mobile', 'index.html'));
|
||||||
}
|
}
|
||||||
|
|
||||||
res.sendFile(path.join(__dirname, 'dental-client', 'dist', 'index.html'));
|
res.sendFile(path.join(__dirname, 'dental-client', 'dist', 'index.html'));
|
||||||
|
|||||||
Reference in New Issue
Block a user