How to access .data files in app.js

Hi!
I have a very little question: I have a Google Keys JSON file, and I can’t store it publicly (Source: cloud.google.com)
I had the idea of storing it on the .data folder, and I have stored it there, but how can my app.js backend access it?
My code:

// app.js
const express = require('express');
const bodyParser = require('body-parser');
const { google } = require('googleapis');
const unirest = require('unirest');
> const gkeys = require('.data/googlekeys.json');

const app = express();

app.use(bodyParser.urlencoded({
  extended: false
}));

app.use(bodyParser.json());

etc...

Files:
files
Project name: polar-rhetorical-cormorant
Type: Google Chat bot
Edit: This project was deleted, but I still have the question.

You’re using require to get it at the moment, which is exactly what you need.
If .data/googlekeys.json looked like this:

{
  "foo": "bar"
}

You’d access foo from your backend by accessing gkeys.foo or gkeys['foo'].

If it doesn’t work try replacing require('.data/googlekeys.json') with require('./.data/googlekeys.json').