@tinacms/app 1.0.5 → 1.0.6

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babel/parser",
3
- "version": "7.20.13",
3
+ "version": "7.20.15",
4
4
  "description": "A JavaScript parser",
5
5
  "author": "The Babel Team (https://babel.dev/team)",
6
6
  "homepage": "https://babel.dev/docs/en/next/babel-parser",
package/dist/index.js CHANGED
@@ -375,13 +375,19 @@ var viteBuild = async ({
375
375
  const alias = {
376
376
  TINA_IMPORT: configPrebuildPath
377
377
  };
378
+ const publicEnv = {};
379
+ Object.keys(process.env).forEach((key) => {
380
+ if (key.startsWith("TINA_PUBLIC_") || key.startsWith("NEXT_PUBLIC_") || key === "NODE_ENV" || key === "HEAD") {
381
+ publicEnv[key] = JSON.stringify(process.env[key]);
382
+ }
383
+ });
378
384
  const config = {
379
385
  root: appRootPath,
380
386
  base: `/${outputFolder}/`,
381
387
  mode: local ? "development" : "production",
382
388
  plugins: [(0, import_vite.splitVendorChunkPlugin)(), (0, import_plugin_react.default)(), viteTina()],
383
389
  define: {
384
- "process.env": `new Object(${JSON.stringify(process.env)})`,
390
+ "process.env": `new Object(${JSON.stringify(publicEnv)})`,
385
391
  __API_URL__: `"${apiUrl}"`
386
392
  },
387
393
  esbuild: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/app",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": {
@@ -37,8 +37,8 @@
37
37
  "@types/react": "17.0.2",
38
38
  "@types/react-dom": "17.0.2",
39
39
  "@tinacms/scripts": "1.0.1",
40
- "tinacms": "1.1.4",
41
- "@tinacms/toolkit": "1.3.0",
40
+ "tinacms": "1.1.5",
41
+ "@tinacms/toolkit": "1.3.1",
42
42
  "@tinacms/mdx": "1.1.1",
43
43
  "jest": "^27.0.6"
44
44
  },