Skip to content

Commit

Permalink
Move env.js to public so it's available in dist to use in functions
Browse files Browse the repository at this point in the history
  • Loading branch information
poplexity committed Jul 30, 2023
1 parent b78a709 commit ef04840
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion functions/testing.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


export function onRequest(context) {
const env = require('../env')(context);
const env = require('../public/env')(context);
console.dir(context);
const apiEndpoint = env.NETWORK_EVM_RPC;
return new Response(`Hello, ${context.env.NETWORK} world!!!!!!!!\n\nNetwork RPC is: ${apiEndpoint}`);
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion quasar.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/* eslint-env node */

require('dotenv').config();
const env = require('./env')(process);
const env = require('./public/env')(process);
const ESLintPlugin = require('eslint-webpack-plugin');
const nodePolyfillWebpackPlugin = require('node-polyfill-webpack-plugin');

Expand Down

0 comments on commit ef04840

Please sign in to comment.