Support degree
I have a master's in comparative literature and I've been working as a front end/full stack developer for almost a decade. (I started as freelance but I didn't love it, personally - but more on that below.)
Obviously philosophy & literature degrees aren't going to directly help you - but they can help you shape your career, if you want. If your goal is to work as a developer in a gigantic multinational corporation, I have no advice - but if you want to stay around philosophy and philosophers, you can do what I did: work for institutions, rather than corporations.
I've been a developer for 10 years and probably 7 of them were at libraries. I've gotten to know colleagues at colleges and universities and it's a great crowd. I'm currently at an academic library and I love it: I get to work in the academic environment, be around the vibrant college vibe, but I don't actually have to interact with students, professors, or really anyone other than developers and bosses.
If you go that route, you should be aware that some jobs will just randomly pay super badly - make sure you're aware of that in advance and don't waste your time. Those institutions that can't meet industry salaries should be outsourcing - which brings me to my final tip on that topic:
There are LOTS of academic and "academic-adjacent" institutions that can't afford developers and so they outsource. The people they outsource to - that's who you want to find. Go to the websites for events and "initiatives" (ie smaller websites, not their huge ILS or DAMS software or whatever), scroll to the bottom, and find "website by FooBarBaz" - and find those people. They're usually small, and, importantly, local development firms and usually specialize in that kind of work - and they pay the kinds of salaries one would expect. So that's another route.
Those "companies" - it's weird to even call them that, because it's usually just one or two people who were freelance and just banded together and called it a company; they hired a few yous and mes and they stick with that their entire careers. They'll often have you freelance for them for a little bit until you prove your value, and then offer you a real job - or just keep you afloat until you find a "real" job.
(Getting back to my "more on that in a bit" from the first paragraph: that's the freelancing I recommend: freelance for freelancers. This goes for inside and outside the academic/GLAM world: a good freelancer will have more offers of work than they can handle - so they outsource to you, take a cut, and give you experience. It's not ideal, but it can turn into a solid, long term relationship, and having a developer as a "boss" also means they'll understand the challenges you'll be facing as a new developer.)
Good luck.