astro-tractstack 2.0.0-rc.3 → 2.0.0-rc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bin/create-tractstack.js +3 -9
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -25,7 +25,7 @@ For production deployment you'll need to prepare your server.
|
|
|
25
25
|
**One-line installer (recommended for Linux):**
|
|
26
26
|
|
|
27
27
|
```bash
|
|
28
|
-
curl -fsSL https://
|
|
28
|
+
curl -fsSL https://get.tractstack.com | bash
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
This will automatically install both the Go backend and create a new Astro project with TractStack.
|
package/bin/create-tractstack.js
CHANGED
|
@@ -68,7 +68,8 @@ function parseExistingEnv() {
|
|
|
68
68
|
tenantId: envVars.PUBLIC_TENANTID || defaults.tenantId,
|
|
69
69
|
goBackendPath: envVars.PRIVATE_GO_BACKEND_PATH || defaults.goBackendPath,
|
|
70
70
|
enableMultiTenant:
|
|
71
|
-
envVars.
|
|
71
|
+
envVars.PUBLIC_ENABLE_MULTI_TENANT === 'true' ||
|
|
72
|
+
defaults.enableMultiTenant,
|
|
72
73
|
};
|
|
73
74
|
} catch (error) {
|
|
74
75
|
console.log(
|
|
@@ -221,7 +222,7 @@ ${kleur.bold('Examples:')}
|
|
|
221
222
|
PUBLIC_GO_BACKEND="${responses.goBackend}"
|
|
222
223
|
PUBLIC_TENANTID="${finalTenantId}"
|
|
223
224
|
PRIVATE_GO_BACKEND_PATH="${responses.goBackendPath.endsWith('/') ? responses.goBackendPath : responses.goBackendPath + '/'}"
|
|
224
|
-
${responses.enableMultiTenant ? '
|
|
225
|
+
${responses.enableMultiTenant ? 'PUBLIC_ENABLE_MULTI_TENANT="true"' : ''}
|
|
225
226
|
`;
|
|
226
227
|
|
|
227
228
|
try {
|
|
@@ -529,17 +530,10 @@ export default defineConfig({
|
|
|
529
530
|
const runCommand =
|
|
530
531
|
packageManager === 'pnpm' ? 'pnpm run' : `${packageManager} run`;
|
|
531
532
|
|
|
532
|
-
console.log('\nNext steps:');
|
|
533
|
-
console.log(kleur.cyan('1. Start your Go backend:'));
|
|
534
|
-
console.log(' tractstack-go');
|
|
535
|
-
console.log(kleur.cyan('2. Start your Astro development server:'));
|
|
536
|
-
console.log(` ${runCommand} dev`);
|
|
537
|
-
|
|
538
533
|
if (responses.enableMultiTenant) {
|
|
539
534
|
console.log('\n' + kleur.bold('Multi-tenant features enabled:'));
|
|
540
535
|
console.log(` • Tenant registration: ${kleur.cyan('/sandbox/register')}`);
|
|
541
536
|
console.log(` • Subdomain routing middleware added`);
|
|
542
|
-
console.log(` • Admin-only tenant management`);
|
|
543
537
|
console.log(
|
|
544
538
|
`\n${kleur.yellow('Note:')} Make sure your Go backend has ENABLE_MULTI_TENANT=true`
|
|
545
539
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "astro-tractstack",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.4",
|
|
4
4
|
"description": "Astro integration for TractStack - build adaptive websites with HTMX and Go",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"README.md"
|
|
19
19
|
],
|
|
20
20
|
"bin": {
|
|
21
|
-
"create-tractstack": "
|
|
21
|
+
"create-tractstack": "bin/create-tractstack.js"
|
|
22
22
|
},
|
|
23
23
|
"scripts": {
|
|
24
24
|
"build": "vite build && tsc -p tsconfig.dts.json",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"license": "FSL-1.1-MIT",
|
|
38
38
|
"repository": {
|
|
39
39
|
"type": "git",
|
|
40
|
-
"url": "https://github.com/AtRiskMedia/astro-tractstack.git"
|
|
40
|
+
"url": "git+https://github.com/AtRiskMedia/astro-tractstack.git"
|
|
41
41
|
},
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public",
|