Custom domain for api firebase

What is the name of the domain?

api.mbset.com

What is the error number?

dns not responding

What is the issue you’re encountering

dns not responding

What steps have you taken to resolve the issue?

i m pointing api.mbset.com to the hostname of my functions on firebase
us-central1-bmset-85f8a-e1af4.cloudfunctions.net
to use the custom domain it’s been 24 hours and dns didn’t propagate

What feature, service or problem is this related to?

DNS not responding/updating

api.mbset.com is proxied…
https://cf.sjr.org.uk/tools/check?c0a81691bc3944d8a7ab831796494d2f#dns
…so will return Cloudflare IP addresses, see…

If you want to see the DNS records as set, you will need to set them to “DNS only”. Note that will send requests direct to Firebase and not through Cloudflare so no Cloudflare protections or features will be applied to the site traffic.

1 Like

in the report you gave there is a message
“The server rejected the connection with HTTP code 404.”
could it be a problem in my API configuration
I saw that many are using Cloudflare to customize the domain to their API

const functions = require('firebase-functions');
const server = require('./src/server')

const opts = {memory: '1GB', timeoutSeconds: 60};

const api = functions.runWith(opts).https.onRequest(server)

module.exports = {
  api
}

app.use(cors({
  origin: ['https://app.mbset.com', 'https://admin.mbset.com', 'https://dashboard.mbset.com', 'https://demo.mbset.com', 'http://localhost:5173'],
  methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'],
  allowedHeaders: ['Content-Type', 'Authorization'],
  credentials: true
}))
  .use(bodyParser.json())
  .use(require('./routes/routes'))
  .get('*', (_, res) => {
    res.status(404).json({
      success: false,
      data: 'Not Found!'
    })
  });

this is my configurations