@aurostack/stacks 0.2.2 → 0.2.3
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
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
House project templates, and the generator that stamps them out.
|
|
4
4
|
|
|
5
|
+
**Documentation: [aurostack-org.github.io/stacks](https://aurostack-org.github.io/stacks/)**:
|
|
6
|
+
every template, feature and environment variable, how to set up and connect a
|
|
7
|
+
generated project, and architecture diagrams. Sources in [`docs/`](docs/).
|
|
8
|
+
|
|
5
9
|
```
|
|
6
10
|
stack list # what's available
|
|
7
11
|
stack info nest-api # its features and defaults
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aurostack/stacks",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Scaffold new projects from house templates: a NestJS API, React app or Turborepo monorepo, and Node or Python workers. Subtractive templates plus a zero-dependency generator.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Aurostack (https://github.com/aurostack-org)",
|
|
@@ -8,10 +8,11 @@ APP_HOST='0.0.0.0'
|
|
|
8
8
|
PORT='5000'
|
|
9
9
|
SERVER_HOST='http://localhost:5000'
|
|
10
10
|
FRONTEND_HOST='http://localhost:3000'
|
|
11
|
-
# Extra origins beyond FRONTEND_HOST, comma separated
|
|
12
|
-
#
|
|
13
|
-
# (`http://localhost:3001`) is used as written; a bare hostname
|
|
14
|
-
# expands to https://example.com and its auth., app. and admin.
|
|
11
|
+
# Extra origins beyond FRONTEND_HOST, comma separated, trusted by auth and
|
|
12
|
+
# allowed by CORS: every react-monorepo app goes here or in FRONTEND_HOST. A full
|
|
13
|
+
# origin (`http://localhost:3001`) is used as written; a bare hostname
|
|
14
|
+
# (`example.com`) expands to https://example.com and its auth., app. and admin.
|
|
15
|
+
# subdomains.
|
|
15
16
|
MISC_CORS_ORIGINS=''
|
|
16
17
|
|
|
17
18
|
DATABASE_URL='postgresql://root:postgres@localhost:5432/main'
|
|
@@ -14,11 +14,11 @@ const frontendHost = E.FRONTEND_HOST!;
|
|
|
14
14
|
const env = E.APP_ENV!;
|
|
15
15
|
const IS_DEV = env === 'development';
|
|
16
16
|
|
|
17
|
-
//
|
|
18
|
-
// the
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
// The same origins better-auth trusts, in every environment: an origin trusted
|
|
18
|
+
// for sign-in but refused by CORS can't reach the API at all (every
|
|
19
|
+
// react-monorepo app beyond FRONTEND_HOST). MISC_CORS_ORIGINS is empty unless
|
|
20
|
+
// you list something.
|
|
21
|
+
const CORS_ORIGINS = [frontendHost, ...OriginBuilder.build(E.MISC_CORS_ORIGINS)];
|
|
22
22
|
|
|
23
23
|
// @feature:start openapi
|
|
24
24
|
const createDocumentBuilder = () => {
|