feat(styles): add browser scss builder system
This commit is contained in:
+2
-2
@@ -6,13 +6,13 @@ The Toolkit socket is a local/shared Socket.IO authoring server for browser-only
|
||||
|
||||
```bash
|
||||
npm run dev:toolkit
|
||||
curl http://127.0.0.1:5174/health
|
||||
curl http://127.0.0.1:5175/health
|
||||
```
|
||||
|
||||
Default local settings:
|
||||
|
||||
- host: `127.0.0.1`
|
||||
- port: `5174`
|
||||
- port: `5175`
|
||||
- CORS origin: `http://127.0.0.1:5173`
|
||||
|
||||
## Shared Deployment
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ import { promisify } from 'node:util';
|
||||
const execFileAsync = promisify(execFile);
|
||||
const ports = [
|
||||
process.env.WEB_DEV_PORT ?? '5173',
|
||||
process.env.TOOLKIT_SOCKET_PORT ?? '5174',
|
||||
process.env.TOOLKIT_SOCKET_PORT ?? '5175',
|
||||
];
|
||||
|
||||
async function getPortProcessIds(port) {
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ const require = createRequire(import.meta.url);
|
||||
const packageJson = require('../package.json');
|
||||
const defaultWebOrigin = 'http://127.0.0.1:5173';
|
||||
const host = process.env.TOOLKIT_SOCKET_HOST ?? '127.0.0.1';
|
||||
const port = Number.parseInt(process.env.TOOLKIT_SOCKET_PORT ?? '5174', 10);
|
||||
const port = Number.parseInt(process.env.TOOLKIT_SOCKET_PORT ?? '5175', 10);
|
||||
const allowedOrigins = (
|
||||
process.env.TOOLKIT_SOCKET_CORS_ORIGIN ?? defaultWebOrigin
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user