Add camera settings and Vercel deployment
This commit is contained in:
1 parent
62a529ef3f
commit
4108cd04b3
5 files changed
+57
No files matched your search
@@ -0,0 +1,13 @@
|
||||
// Only the static web application is published; repository tools and local
|
||||
// configuration are not copied to the public deployment.
|
||||
const fs = require('node:fs');
|
||||
const path = require('node:path');
|
||||
const root = path.resolve(__dirname, '..');
|
||||
const output = path.join(root, 'dist');
|
||||
fs.mkdirSync(output, { recursive: true });
|
||||
for (const name of ['index.html', 'version.json', 'assets', 'css', 'js']) {
|
||||
const source = path.join(root, name);
|
||||
if (!fs.existsSync(source)) throw new Error(`Missing static application input: ${name}`);
|
||||
fs.cpSync(source, path.join(output, name), { recursive: true, force: true });
|
||||
}
|
||||
console.log('Static application prepared for Vercel.');
|
||||
Reference in new issue
Block a user